Skip to main content

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.

Prerequisites

  • Node.js
  • Postchain client: npm install postchain-client

Demo script

Learn more