> For the complete documentation index, see [llms.txt](https://jgonzalez0886.gitbook.io/huddln/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jgonzalez0886.gitbook.io/huddln/dapp-integration.md).

# Dapp Integration

basic guide

## Intro

This guide will go over setting the Huddln Service in your Dapp. Currently this service is only available on the Matic Network.

If you would like to become a partner you must setup your Dapp to interact on the Matic Network.

To learn more about integrating with **Matic + Metamask** check out their documentation before proceeding. <https://docs.matic.network/docs/develop/getting-started>

The following guides will also assume you have already setup your web3js project & know how to interact with Metamask.&#x20;

{% hint style="info" %}
Need a refresher ? <https://web3js.readthedocs.io/en/v1.3.0/getting-started.html#adding-web3>
{% endhint %}

## Gateway Status

It should be noted that all calls to the service are delegated with the Gateway Contract. This gateway acts as the main endpoint for the service. Depending on your dapp design it may be needed to listen to events emitted from the feature contracts (Content staking) for you UX/UI.

The **Gateway** is pausable, this means that the Huddln organization may put this service in paused mode when performing upgrades and or **maintenance**.&#x20;

Your dapp should always listen to the status before attempting any calls.

The public variable is available via **isRunning** .

{% hint style="info" %}
Any old versions of the service will perpetually have **isRunning** = false
{% endhint %}
