Get block by data hash
get_block_by_hashLocates a Fabric block by its 64-character data hash by scanning forward from a chosen start block, then returns the block summary.
Instructions
Find a block by its data hash by scanning blocks forward from startBlock. Returns the block summary.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"channel": "<channel>",
"hash": "<hash>"
},
"name": "get_block_by_hash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | Yes | Block data hash (hex, 64 chars) | |
| channel | Yes | Fabric channel name | |
| maxBlocks | No | Scan at most this many blocks | |
| timeoutMs | No | ||
| startBlock | No | Scan from this block |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | No | ||
| found | Yes | ||
| txIds | No | ||
| number | No | ||
| scanned | No | ||
| txCount | No | ||
| dataHash | No | ||
| previousHash | No |