LitListenerSDK
  • Overview
  • Quick Start
  • SDK Reference
    • Instantiate Circuit
    • Set Conditions
    • Conditional Logic
    • Set Actions
    • Execution Constraints
    • IPFS Hash
    • MintGrantBurn PKP
    • Start Circuit
    • Broadcast Transactions
    • Add Secure Key
  • Database and Server Interactions
    • Server-SDK Integration
    • Persistant Circuit Architecture
  • Errors and Logs
    • Logs & Error Handling
    • Error Strict Mode
  • Live
    • No Code Interface
  • Resources
    • Issues
    • Testing
    • Contributors
    • System Architecture
    • About the Devs
    • Storefront
  • Github
  • Lit Developer Docs
Powered by GitBook
On this page
  1. Database and Server Interactions

Server-SDK Integration

Long-Range and Long-Running Operations

PreviousAdd Secure KeyNextPersistant Circuit Architecture

Last updated 1 year ago

For applications where continuous webhook and contract event monitoring is required, a dedicated stable server setup provides uninterrupted connection.

A full code example of this set up, using an Node.js backend (hosted on ), is available (frontend) and (backend server), with the architecture running live at .

The SDK also includes dedicated long-running functions that support the minting of PKPs directly from the server.

Further, the Listener Contract Factory can be deployed on Polygon as a persistant on-chain database for storing all logs generated by the running circuits on the server. These logs are stored with IPFS and can be accessed via a dedicated subgraph, making data retrieval efficient and streamlined for frontend queries. With this architecture, all logs are batched and signed to the Listener Database contract through an assigned PKP.

See for a step by step walkthrough for getting started with a long range setup.

here
render.com
here
here
listener.irrevocable.dev