Get chaincode events
get_chaincode_eventsRead recent Hyperledger Fabric chaincode events by channel and chaincode, returning event names, transactions, blocks, and payloads. Filter by event name or start block to inspect ledger activity.
Instructions
Read recent chaincode events from the Fabric ledger (event name, transaction, block, payload).
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>",
"chaincode": "<chaincode>"
},
"name": "get_chaincode_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| channel | Yes | Fabric channel name | |
| chaincode | Yes | Chaincode name | |
| eventName | No | Filter by exact event name | |
| timeoutMs | No | ||
| startBlock | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes |