> For the complete documentation index, see [llms.txt](https://docs.linkdrop.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.linkdrop.io/linkdrop-dashboard/dashboard-sdk-and-api/keys-and-installation.md).

# Keys and installation

#### Supported networks

Currently, Linkdrop supports the following networks:

* Ethereum Mainnet
* Polygon Mainnet

Testnets:

* Goerli (Ethereum testnet)
* Mumbai (Polygon testnet)

We can add support of any EVM-based chain by request. Please contact us If you need to use Linkdrop on other networks.

#### Getting Started

To start using the SDK you will first need to[ create a campaign](/linkdrop-dashboard/creating-links-in-bulk/main-guide/setting-up-a-campaign.md), with specific settings on the Distribution tab:&#x20;

1. Set up the "Distribution" to SDK.<br>
2. If you select to "Sponsor claim transactions" in Transaction sponsorship, you will see one more appear below - **"Specify number of NFTs"**. \
   \ <mark style="background-color:yellow;">You should enter the  amount of tokens that you would like to distribute with SDK for us to initially secure the tokens needed for sponsorship. You can enter the approximate amount of tokens here.</mark>\
   \ <mark style="background-color:yellow;">Don't worry you will then be able to manually send the sponsorship tokens to the contract if you would like to generate more links with SDK or refund the unused tokens (see</mark> [Refunding unused tokens](/linkdrop-dashboard/creating-links-in-bulk/managing-a-campaign/refunding-unused-tokens.md))<br>
3. Сontinue to the final step and launch campaign
4. On the final screen you will see the "Campaign parameters" section. This is the sensitive data and you should not share it publicly.&#x20;
5. Press on the eye icon to see your <mark style="background-color:orange;">signing key</mark> and <mark style="background-color:orange;">encryption key</mark>.

#### Install the SDK to your project using Terminal&#x20;

```
yarn add linkdrop-sdk
```

#### Initializing SDK

First, import SDK into your code:

```
import LinkdropSDK from 'linkdrop-sdk'
// or
// const LinkdropSDK = require('linkdrop-sdk').default
```

To use SDK on a testnet:

```
// initializing Linkdrop SDK on a testnet (Goerli or Mumbai)
const sdk = new LinkdropSDK({ mode: 'testnets' });
```

To use SDK on a production network (Ethereum Mainnet or Polygon):

```
// initializing Linkdrop SDK on a production network 
const sdk = new LinkdropSDK({
  claimHostUrl: 'https://claim.linkdrop.io/'
});
```

*claimHostUrl: '<https://claim.linkdrop.io/>'* is our default public claim host. If you are using business or enterprize plans and have received the customized claim application, you should enter its host instead of *<https://claim.linkdrop.io/>* if you intend to use SDK

{% hint style="info" %}
You can also find all SDK methods here: <https://github.com/LinkdropHQ/linkdrop-sdk>
{% endhint %}


---

# 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:

```
GET https://docs.linkdrop.io/linkdrop-dashboard/dashboard-sdk-and-api/keys-and-installation.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.
