Get transaction by ID
get_transactionLocate a Hyperledger Fabric transaction by ID on a channel by scanning blocks forward from a chosen start block; returns the block summary containing it.
Instructions
Find a transaction by its ID by scanning blocks forward from startBlock. Returns the block summary containing the transaction.
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>",
"txid": "<txid>"
},
"name": "get_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txid | Yes | Transaction ID to find | |
| 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 |
|---|---|---|---|
| txid | No | ||
| found | Yes | ||
| txIds | No | ||
| number | No | ||
| scanned | No | ||
| txCount | No | ||
| dataHash | No | ||
| previousHash | No |