Fetch and decode block data
To fetch and decode block data, first extract the block RID from a given transaction RID, then use Postchain to retrieve the full block information.
- 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.