Skip to main content

TransactionArgument

sealed class TransactionArgument

A transaction argument used in programmable transactions.

Inheritors

GasCoin
Input
Result

Types

NameSummary
GasCoinobject GasCoin : TransactionArgument
Reference to the gas coin.
Inputdata class Input(val index: UInt) : TransactionArgument
An input to the programmable transaction block.
Resultdata 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

Inputconstructor(index: UInt)

Properties

NameSummary
indexval 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

Resultconstructor(cmd: UInt, index: UInt?)

Properties

NameSummary
cmdval cmd: UInt
The index of the previous command (0-indexed) that returned this result.
indexval 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).