Overview
Subscriptions empower developers to receive real-time updates triggered by smart contract events or internal loyalty actions. These notifications can either be sent to a webhook endpoint or used to automatically invoke functions.Event Types
Blockchain Events
Blockchain events notify you whenever a smart contract emits an event or a function is called. These events track on-chain state with minimal latency (typically one block), making them ideal for real-time applications.Blockchain Function Events
The process mirrors blockchain events with a slight variation:Snag Events
Snag events allow subscriptions to internal platform actions. These events
relate to loyalty account activities and may have a slight delay (up to 30
seconds) after the action is recorded.
Event Types Reference
LoyaltyTransactionEntry
Triggered when a user’s account balance is updated
UserMetadata
Emitted when a user’s profile is created or updated
LoyaltyRuleStatus
Triggered when a user’s loyalty rule progress is set to 100