@artblocks/sdk v0.1.12
artblocks-sdk
This SDK can assist in simplifying the process of configuring minters, integrating purchasing functionality, and streamlining integration between Art Blocks Engine and partner websites using the Art Blocks minter suite.
Overview
The Art Blocks SDK is a TypeScript library that can be used to simplify the process of integrating with the Art Blocks minter suite. It can be used to:
- Configure a project's current minter
- Query available minters and update the selected minter for a project
- Retrieve pricing information and metadata for a project
- Initiate a purchase transaction to mint a new token
- Check if a wallet is allowed to mint a token
- Retrieve the allowlist (if configured) for a minter
Add the SDK to your project
To get started with the SDK, you will need to install it as a dependency in your project:
npm install @artblocks/sdk --save
If you are using Yarn:
yarn add @artblocks/sdk
Import and initialize the SDK
Once installed, you can import the SDK into your project and initialize it with your backend authentication token and an ethers.js provider:
import { ArtBlocksSDK } from '@artblocks/sdk';
import { ethers } from 'ethers';
const artBlocksSDK = new ArtBlocksSDK({
jwt: 'my-jwt', // backend authentication token
provider: ethers.getDefaultProvider('homestead') // ethers.js provider
});
2 days ago
2 days ago
4 days ago
4 days ago
4 days ago
26 days ago
1 month ago
5 months ago
7 months ago
7 months ago
9 months ago
7 months ago
7 months ago
9 months ago
9 months ago
9 months ago
7 months ago
7 months ago
9 months ago
7 months ago
12 months ago