WaitForTx
WaitForTx
enum WaitForTx
Determines what to wait for after executing a transaction.
Users should almost always use WaitForTx::Finalized (the default). The GraphQL client interacts with the indexer, not the fullnode directly. Using WaitForTx::IndexedOnNode only guarantees the transaction is indexed on the fullnode (meaning you can submit transactions that reference objects created by this transaction), but subsequent queries using the transaction ID can still fail until the transaction is indexed on the indexer.
WaitForTx.finalized
case finalized
Indicates that the transaction has been included in a checkpoint, and all queries may include it.
WaitForTx.indexedOnNode
case indexedOnNode
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.
Warning: This does not guarantee the transaction is indexed on the indexer. Since the GraphQL client queries the indexer, subsequent queries with this transaction ID may still fail. Prefer WaitForTx::Finalized unless you have a specific reason to use this.
!=(_:_:)
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
Inequality is the inverse of equality. For any values a and b, a != b
implies that a == b is false.
This is the default implementation of the not-equal-to operator (!=)
for any type that conforms to Equatable.
- Parameters:
- lhs: A value to compare.
- rhs: Another value to compare.