Stream Soroban smart-contract events over a ledger range
Returns Soroban contract events, filtered by type, contract and topic pattern over a ledger range. This method has no EVM counterpart: Soroban events carry base64 XDR ScVal topics rather than hex log topics.
Topic patterns match segment by segment, * matches exactly one segment and ** matches zero or more segments at the end. Paginate with the cursor from the previous reply; latestLedger tells you how far the index has reached.
Stellar is served by this namespace only. The ankr_* methods reject both stellar and stellar_soroban as a blockchain value.
Request
- Base URLhttps://rpc.ankr.com/multichain/569ca1f392f7d3d0bb1073a1173ecb649af1d9249231fe59fa95db19d5ae41fe
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"id": 1,
"jsonrpc": "2.0",
"method": "stellar_getEvents",
"params": {
"blockchain": "stellar_soroban",
"startLedger": 1000000,
"limit": 1
}
}Response
Success. JSON-RPC result contains the matching events, a pagination cursor and the latest indexed ledger. JSON-RPC errors are returned with HTTP 200; check the response body for an error key.
Changes
No recorded changes to this operation across all 1 revision of this API.