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, with specific settings on the Distribution tab:
Set up the "Distribution" to SDK.
If you select to "Sponsor claim transactions" in Transaction sponsorship, you will see one more appear below - "Specify number of NFTs". 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. 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 Refunding unused tokens)
Сontinue to the final step and launch campaign
On the final screen you will see the "Campaign parameters" section. This is the sensitive data and you should not share it publicly.
Press on the eye icon to see your signing key and encryption key.
Install the SDK to your project using Terminal
Initializing SDK
First, import SDK into your code:
To use SDK on a testnet:
To use SDK on a production network (Ethereum Mainnet or Polygon):
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
You can also find all SDK methods here: https://github.com/LinkdropHQ/linkdrop-sdk
Last updated