transactionStatus
Name: transactionStatus
transactionStatus
is a stream that shows the real-time status of transactions as they propagate throughout the Ethereum network. For example, this allows users to know the exact moment their transaction is confirmed, i.e. has been included in enough blocks that it is considered confirmed.
To use the transactionStatus
stream, you first need to subscribe to the stream. Then you need to request monitoring for transactions for which you would like to receive status updates. Transactions can be yours or someone else's. In order to monitor a transaction, you need to send the signed raw transaction to the Cloud-API (note: Sending only the transaction hash is not sufficient because the Cloud-API might not have the transaction you want to monitor.).
This is a Cloud-API (wss://api.blxrbdn.com/ws) only stream.
The stream will return an event every time a status is changed for one of the monitored transactions. Please review the list of possible statuses at the bottom of the page. The stream supports two methods as documented below.
Method: start_monitor_transaction
Description: Submits transactions for monitoring. Cloud-API automatically starts monitoring transactions submitted by the same sender that have the same nonce.
Parameters
Parameter
Description
transactions
[Mandatory] List of raw transaction bytes without 0x
prefix.
subscription_id
[Mandatory] The returned subscription ID from initial transactionStatus
stream subscription
blockchain_network
[Optional, default: Mainnet] The blockchain network for the transaction. (note: It should match with the blockchain_network
provided in the initial transactionStatus
subscribe request.)
Method: stop_monitor_transaction
Description: Stops monitoring a transaction.
Parameters
Parameter
Description
transaction_hash
[Mandatory] Transaction hash without 0x
prefix.
subscription_id
[Mandatory] The returned subscription ID from initial transactionStatus
stream subscription
blockchain_network
[Optional, default: Mainnet] The blockchain network for the transaction. (note: It should match with the blockchain_network
provided in the initial transactionStatus
subscribe request.)
Requests Examples
Subscribing to the Cloud-API transactionStatus
stream in Python (Line 7 creates the subscription):
Possible statuses are:
Status
Description
UNKNOWN
The transaction is not recognized.
TX_POOL
The transaction was received by a blockchain node and accepted to its tx pool.
MINED
The transaction was included in a block.
CANCELED
The transaction is canceled.
REPLACED
Received a new transaction with the same address and nonce as the monitored transaction.
Results Example
Last updated