get_contract_events
Query recent Soroban contract events by contract ID and decode their topics and values to inspect on-chain activity and debug contract behavior.
Instructions
Query recent Soroban contract events for a contract ID and decode their topics and values.
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": {
"contract_id": "<contract_id>"
},
"name": "get_contract_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max events to return (1-100, default 20) | |
| network | No | Optional network override (defaults to configured STELLAR_NETWORK). | |
| contract_id | Yes | Soroban contract ID (C...) | |
| start_ledger | No | Starting ledger sequence (defaults to latestLedger - 1000) |