TransactionArgument
sealed class TransactionArgument
A transaction argument used in programmable transactions.
Inheritors
| GasCoin |
| Input |
| Result |
Types
| Name | Summary |
|---|---|
| GasCoin | object GasCoin : TransactionArgument Reference to the gas coin. |
| Input | data class Input(val index: UInt) : TransactionArgument An input to the programmable transaction block. |
| Result | data class Result(val cmd: UInt, val index: UInt?) : TransactionArgument The result of another transaction command. |
GasCoin
object GasCoin : TransactionArgument
Reference to the gas coin.
Input
data class Input(val index: UInt) : TransactionArgument
An input to the programmable transaction block.
Constructors
| Input | constructor(index: UInt) |
Properties
| Name | Summary |
|---|---|
| index | val index: UInt Index of the programmable transaction block input (0-indexed). |
Result
data class Result(val cmd: UInt, val index: UInt?) : TransactionArgument
The result of another transaction command.
Constructors
| Result | constructor(cmd: UInt, index: UInt?) |
Properties
| Name | Summary |
|---|---|
| cmd | val cmd: UInt The index of the previous command (0-indexed) that returned this result. |
| index | val index: UInt? If the previous command returns multiple values, this is the index of the individual result among the multiple results from that command (also 0-indexed). |