corda / net.corda.core.transactions / LedgerTransaction / getCommand

getCommand

fun <T : CommandData> getCommand(index: Int): Command<T>

Helper to simplify getting an indexed command.

Parameters

index - the position of the item in the commands.

Return
The Command at the requested index