Get blockchain info
get_blockchain_infoReads ledger height and hashes for a Fabric channel via the Fabric Gateway REST API, enabling agents to inspect blockchain state when FABRIC_REST_URL is configured.
Instructions
Read ledger height and hashes for a channel via the Fabric Gateway REST API. Requires FABRIC_REST_URL.
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>"
},
"name": "get_blockchain_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | Fabric channel name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| height | No | ||
| currentBlockHash | No | ||
| previousBlockHash | No |