Get block by number
get_blockRead a Hyperledger Fabric block by channel and block number to retrieve its number, hashes, and transactions for ledger inspection and auditing.
Instructions
Read a block from the Fabric ledger by block number and return a summary (number, hashes, transactions).
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>",
"number": "<number>"
},
"name": "get_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | Block number (0 = genesis) | |
| channel | Yes | Fabric channel name | |
| timeoutMs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txIds | Yes | ||
| number | No | ||
| txCount | Yes | ||
| dataHash | No | ||
| previousHash | No |