Skip to main content

WaitForTransaction

enum WaitForTransaction : Enum<WaitForTransaction>

Determines what to wait for after executing a transaction.

Entries​

INDEXED_ON_NODEINDEXED_ON_NODE
Indicates that the transaction effects will be usable in subsequent transactions (you can reference objects created by this transaction), and that the transaction itself is indexed on the fullnode, so queries served by the fullnode, such as gRPC, will find it.
FINALIZEDFINALIZED
Indicates that the transaction has been included in a checkpoint, and all queries may include it.

Properties​

NameSummary
entriesval entries: EnumEntries<WaitForTransaction>
Returns a representation of an immutable list of all enum entries, in the order they're declared.
nameval name: String
ordinalval ordinal: Int

Functions​

NameSummary
valueOffun valueOf(value: String): WaitForTransaction
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
valuesfun values(): Array<WaitForTransaction>
Returns an array containing the constants of this enum type, in the order they're declared.

FINALIZED​

FINALIZED

Indicates that the transaction has been included in a checkpoint, and all queries may include it.

Properties​

NameSummary
nameval name: String
ordinalval ordinal: Int

INDEXED_ON_NODE​

INDEXED_ON_NODE

Indicates that the transaction effects will be usable in subsequent transactions (you can reference objects created by this transaction), and that the transaction itself is indexed on the fullnode, so queries served by the fullnode, such as gRPC, will find it.

Warning: This does not guarantee the transaction is indexed on the indexer, so queries served by an indexer, such as GraphQL, may not find it yet. Use WaitForTransaction::Finalized with those clients.

Properties​

NameSummary
nameval name: String
ordinalval ordinal: Int