getEvents
Fetches events from the Soroban RPC in a single request. Useful for one-off queries or building your own polling loop.
Returns:
Promise<{ events: VowenaEvent[], latestLedger: number }>
VowenaEvent
Every event returned bygetEvents or the poller follows this shape:
VowenaEventPoller
For continuous monitoring, useVowenaEventPoller. It polls the RPC at a configurable interval and invokes your callback for each new event.
Methods:
Event Types
The Vowena contract emits the following event types:Example: Logging All Charges
Soroban RPC retains events for a limited window (typically the last ~24 hours of ledgers). For production use, persist events to your own database and use the
startLedger option to resume from where you left off. The Vowena Dashboard includes a built-in event indexer that handles this automatically.