Docs Icon CaretRight Reference Icon CaretRight Subscriptions

Subscriptions

statusChange

Returns a stream of TransactionStatus! updates for the given transaction id if the current status is [TransactionStatus::Submitted].

This stream will wait forever so it's advised to use within a timeout. It is possible for the stream to miss an update if it is polled slower then the updates arrive. In such a case the stream will close without a status. If this occurs the stream can simply be restarted to return the latest status.

args:

id: TransactionId!

The id of the transaction to stream status updates for.

submitAndAwait

Submits a transaction to the TxPool and await returns the TransactionStatus! .

args:

tx: HexString!

The transaction hex string.