How to get transaction status
This recipe demonstrates how to retrieve the status of a transaction on the Chromia blockchain using its RID (Resource Identifier).
Transaction statuses
When retrieving transaction status, you can receive one of the following statuses:
- Unknown - Transaction status is unknown
- Waiting - Transaction is waiting to be included in the block
- Confirmed - Transaction is included in the block
- Rejected - Transaction has been rejected (includes rejection reason and timestamp)
For detailed information about the transaction status API endpoint, see the REST API documentation.
- JS/TS client
Prerequisites
- Node.js
- Postchain client:
npm install postchain-client
Demo script
Learn more
- JavaScript/TypeScript client — covers setup, connection, and usage patterns.
- Chromia Explorer — find RIDs for transactions, blocks, chains, etc.
- Transactions in explorer — understanding transaction data in the explorer.