Stellar (Soroban) API

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.

post/?stellar_getEvents

Request

Request body

idinteger required

Client-supplied request ID echoed in the response.

jsonrpc'2.0' required
method'stellar_getEvents' required

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.

idinteger required
jsonrpc'2.0' required

Changes

No recorded changes to this operation across all 1 revision of this API.