@inkerlabs/sdk
v0.5.7
Published
- [Installation](#installation) - [Getting Started](#getting-started)
Downloads
1
Readme
Installation
npm install --save @inkerlabs/sdkGetting Started
// Import the SDK corresponding to the use case you chose
import {
PassSDK,
RedeemAndRevealSDK,
SimultaneousRevealSDK,
} from '@inkerlabs/sdk'
import { providers, Wallet } from 'ethers'
// The signer is optional. Without a signer, you can only perform read calls.
const signer = new Wallet(
YOUR_PRIVATE_KEY,
new providers.AlchemyProvider('maticmum'),
)
// These informations are available in your dashboard
const config = {
contractAddress: CONTRACT_ADDRESS,
version: VERSION,
chain: CHAIN,
}
// Assuming your use case is Simultaneous Reveal
const sdk = new SimultaneousRevealSDK(config, signer)