Skip to main content

WaitForTransaction

type WaitForTransaction​

Determines what to wait for after executing a transaction.

type WaitForTransaction uint
const (
// 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.
WaitForTransactionIndexedOnNode WaitForTransaction = 1
// Indicates that the transaction has been included in a checkpoint, and all queries may
// include it.
WaitForTransactionFinalized WaitForTransaction = 2
)