Learn how to emit, ingest, and use events published from a Soroban smart contract.
Guides in this category:
📄️ Ingest events published from a contract
Soroban RPC provides a getEvents method which allows you to query events from a smart contract. However, the data retention window for these events is roughly 24 hours. If you need access to a longer-lived record of these events you'll want to "ingest" the events as they are published, maintaining your own record or database as events are ingested.
📄️ Publish events from a Rust contract
An event can contain up to 4 topics, alongside the data it is publishing. The data can be any value or type you want. However, the topics must not contain: