> For the complete documentation index, see [llms.txt](https://docs.irrevocable.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.irrevocable.dev/database-and-server-interactions/server-sdk-integration.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
