Skip to main content

Event Listener

danger

The Lit Event Listener tool is currently incompatible with the latest version of the Lit SDK and must be updated before it can be used by developers building on any of the Lit 'Datil' networks. These updates are planned and the community will be notified as soon as they've been completed.

If you're new to Lit Actions and are looking for a place to start, please consult the quick start guide.

If you have a support request or would like to stay up to date with the latest updates, please join Lit's Ecosystem Builders channel on Telegram.

note

Only available on the test networks

The Lit event listener allows you to create specific event-based triggers for executing Lit Actions.

The SDK is designed around the principle of conditionally pre-approved chain reactions with account abstraction. This series of actions encrypted, conditional, often on-chain, can be chained together to trigger complex strategies.

With the SDK, you'll be able to set three core condition functions: webhooks, on-chain events, and intervals.

  1. Webhooks Webhooks are automated messages sent from apps triggered by user defined behavior. The event listener SDK is designed to query (request) and monitor information from specific APIs. In a blockchain context, this might include tracking price changes of a specific cryptocurrency or updates from a decentralized app.

  2. On-Chain Events The SDK allows you to set up listeners for specific events occurring on the blockchain, like a contract being executed or a new block being added. By subscribing to these events, you're telling the SDK to keep an eye on particular occurrences within blockchain networks.

  3. Intervals Intervals within the SDK act as the timing mechanism that governs how frequently the SDK checks the webhooks and on-chain events. By setting intervals, you determine how often the SDK will check for updates in the specified webhooks or on-chain events. If you need real-time reaction, you might set a short interval, whereas a less time-sensitive circuit might have longer intervals.

Event listener SDK brought to you by DIGITALAX. Read the documentation to learn more.

info

Not finding the answer you're looking for? Share your feedback on these docs by creating an issue in our GitHub Issues and Reports repository or get support by visiting our Support page.