WaitForTransaction
enum WaitForTransaction : Enum<WaitForTransaction>
Determines what to wait for after executing a transaction.
Entries
| 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. |
| FINALIZED | FINALIZED Indicates that the transaction has been included in a checkpoint, and all queries may include it. |
Properties
| Name | Summary |
|---|---|
| entries | val entries: EnumEntries<WaitForTransaction> Returns a representation of an immutable list of all enum entries, in the order they're declared. |
| name | val name: String |
| ordinal | val ordinal: Int |
Functions
| Name | Summary |
|---|---|
| valueOf | fun 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.) |
| values | fun values(): Array<WaitForTransaction> Returns an array containing the constants of this enum type, in the order they're declared. |
FINALIZED
Indicates that the transaction has been included in a checkpoint, and all queries may include it.
Properties
| Name | Summary |
|---|---|
| name | val name: String |
| ordinal | val ordinal: Int |
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
| Name | Summary |
|---|---|
| name | val name: String |
| ordinal | val ordinal: Int |