# How to fetch and decode block data · Chromia Docs (concept)

> 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.

Source: https://docs.chromia.com/build/cookbook/data-inspection/get-block-data/

# How to fetch and decode block data

On this page

* [Prerequisites](#prerequisites)
* [Demo script](#demo-script)
* [Learn more](#learn-more)

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

* [Fetch and decode block data demo](https://bitbucket.org/chromawallet/recipes/src/main/get_block/)

## Learn more

* [JavaScript/TypeScript client](https://docs.chromia.com/build/clients/postchain-clients/javascript-typescript/reference/) — covers setup, connection,
  and usage patterns.
* [Chromia Explorer](https://explorer.chromia.com) — find RIDs for transactions, blocks, chains, etc.

[View this page on docs.chromia.com](https://docs.chromia.com/build/cookbook/data-inspection/get-block-data/)Content mirrored from the live docs
