# Server-SDK Integration

<figure><img src="/files/EhErVIPyWG7poEUTWQzH" alt=""><figcaption></figcaption></figure>

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

A full code example of this set up, using an Node.js backend (hosted on [render.com](https://render.com/)), is available [here](https://github.com/DIGITALAX/ListenerNoCode) (frontend) and [here](https://github.com/DIGITALAX/nocode_listener_server) (backend server), with the architecture running live at [listener.irrevocable.dev](https://listener.irrevocable.dev).

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

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** [**here**](/database-and-server-interactions/persistant-circuit-architecture.md) **for a step by step walkthrough for getting started with a long range setup.**&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.irrevocable.dev/database-and-server-interactions/server-sdk-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
