chain_getBlock – Mythos JSON-RPC Method
chain_getBlock returns full block data from Mythos, including headers, extrinsics, and justifications. Use it to audit marketplace minting, DAO proposals, or cross-game reward batches.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
blockHash | string | No | Hex-encoded block hash. If omitted, the latest block is returned. |
Returns#
Standard Substrate block structure with Mythos-specific extrinsics (NFTs, marketplace, multibatching) inside the block.extrinsics array.
Request Example#
Fetch block 7,258,942 (0x6ec33e), finalized on 3 October 2025:
{
"jsonrpc": "2.0",
"method": "chain_getBlock",
"params": [
"0xcc9e2bff6ef4f135b3711c4a6072320660565335d3d1da874df0211e5222147c"
],
"id": 1
}
Response Highlights#
{
"jsonrpc": "2.0",
"result": {
"block": {
"header": {
"number": "0x6ec33e",
"parentHash": "0x1c09e6b23b7f7b28f7f4d8b127259db1ce4f20cd0917f51eec18ecf5831f1ec6",
"stateRoot": "0xfce16b4795ca76aef6ec59943a65afbd261bc644fe102ed27ae807b023128cbb"
},
"extrinsics": [
"0x91bb05010091...",
"0x2d0284006f26cdb2c3398f2cabaa0bf51d3c8ec3f3cbe75ffb8b9b8853718055517b2497"
]
},
"justifications": null
},
"id": 1
}
The second extrinsic corresponds to nfts.mint, verifying on-chain asset issuance.
Usage Tips#
- Pair with
chain_getBlockHashfor pagination when syncing event data. - Monitor block time (~6 seconds) to tune polling intervals for live leaderboards.
- Trigger retries when
justificationsisnull; Mythos finality arrives from Polkadot GRANDPA.