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 2,611,955
, which includes a Nitro Nation crate mint:
{
"jsonrpc": "2.0",
"method": "chain_getBlock",
"params": [
"0x608b663e3bcc47c0678baf6dbe449ac49e6ac6ddd5119ef494ca5b3b2dc2e5bb"
],
"id": 1
}
Response Highlights
{
"jsonrpc": "2.0",
"result": {
"block": {
"header": {
"number": "0x27dc13",
"parentHash": "0xe174d30da28fd6e342cbcccfafff46549a6513c74c650719d138adf031057d55"
},
"extrinsics": [
"0x2702840030f6...",
"0x2d0284006f26cdb2c3398f2cabaa0bf51d3c8ec3f3cbe75ffb8b9b8853718055517b2497"
]
},
"justifications": null
},
"id": 1
}
The second extrinsic corresponds to nfts.mint
, verifying on-chain asset issuance.
Usage Tips
- Pair with
chain_getBlockHash
for pagination when syncing event data. - Monitor block time (~6 seconds) to tune polling intervals for live leaderboards.
- Trigger retries when
justifications
isnull
; Mythos finality arrives from Polkadot GRANDPA.