-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
51 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Linkdrop SDK | ||
|
||
## 2.0.10 | ||
- | ||
- apiKey added | ||
|
||
## 2.0.9 | ||
- added src param to link (src=d) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Linkdrop SDK | ||
# Linkdrop Batch SDK | ||
|
||
Linkdrop provides tools to distribute NFTs with links, QR codes or claim codes. The Linkdrop SDK is a Typescript library that can be used to automate creating and managing claim links. | ||
|
||
|
@@ -24,19 +24,21 @@ Create a campaign using Linkdrop Dashboard. When creating a campaign you will ne | |
|
||
First, import SDK into your code: | ||
```ts | ||
import LinkdropSDK from 'linkdrop-sdk' | ||
import LinkdropBatchSDK from 'linkdrop-sdk' | ||
// or | ||
// const LinkdropSDK = require('linkdrop-sdk').default | ||
``` | ||
To use SDK on a tesnet: | ||
```ts | ||
const apiKey = /* to request an API key, please contact us at [email protected] */ | ||
// initializing Linkdrop SDK on a testnet (Goerli or Mumbai) | ||
const sdk = new LinkdropSDK({ mode: 'testnets' }); | ||
const sdk = new LinkdropBatchSDK({ mode: 'testnets', apiKey }); | ||
``` | ||
To use SDK on a production network (Ethereum Mainnet or Polygon): | ||
```ts | ||
const apiKey = /* to request an API key, please contact us at [email protected] */ | ||
// initializing Linkdrop SDK on a production network | ||
const sdk = new LinkdropSDK(); | ||
const sdk = new LinkdropBatchSDK({ apiKey }); | ||
``` | ||
|
||
## Claim methods (Can be used on Front-end & Back-end) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "linkdrop-sdk", | ||
"name": "linkdrop-batch-sdk", | ||
"version": "2.0.10", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
|
@@ -12,18 +12,18 @@ | |
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/LinkdropHQ/linkdrop-sdk.git" | ||
"url": "git+https://github.com/LinkdropHQ/linkdrop-batch-sdk.git" | ||
}, | ||
"author": "spacehaz <[email protected]>", | ||
"license": "MIT", | ||
"description": "", | ||
"bugs": { | ||
"url": "https://github.com/LinkdropHQ/linkdrop-sdk/issues" | ||
"url": "https://github.com/LinkdropHQ/linkdrop-batch-sdk/issues" | ||
}, | ||
"engines": { | ||
"node": ">=16.x" | ||
}, | ||
"homepage": "https://github.com/LinkdropHQ/linkdrop-sdk#readme", | ||
"homepage": "https://github.com/LinkdropHQ/linkdrop-batch-sdk#readme", | ||
"keywords": [], | ||
"dependencies": { | ||
"@stablelib/x25519": "^1.0.3", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters