ERC721 - Claim
You can utilize these features of the SDK if your contract implements the ERC721Claimable standard.
Claim A Lazy-Minted NFT
Claim the next available NFT(s) from the lazy minted batch.
Unless otherwise specified in your contract, the default is to claim the next available token IDs; starting from 0
.
- React
- Javascript
- Python
- Go
- Unity
const address = "{{wallet_address}}"; // address of the wallet you want to claim the NFTs
const quantity = 1; // how many unique NFTs you want to claim
const tx = await contract.erc721.claimTo(address, quantity);
const receipt = tx.receipt; // the transaction receipt
const claimedTokenId = tx.id; // the id of the NFT claimed
const claimedNFT = await tx.data(); // (optional) get the claimed NFT metadata
This snippet is for v3 of the SDK. Learn how to upgrade.
View in React SDK Documentationconst address = "{{wallet_address}}"; // address of the wallet you want to claim the NFTs
const quantity = 1; // how many unique NFTs you want to claim
const tx = await contract.erc721.claimTo(address, quantity);
const receipt = tx.receipt; // the transaction receipt
const claimedTokenId = tx.id; // the id of the NFT claimed
const claimedNFT = await tx.data(); // (optional) get the claimed NFT metadata
This snippet is for v3 of the SDK. Learn how to upgrade.
View in Javascript SDK DocumentationThis feature is missing a code snippet or might not be supported yet.
Check the Python SDK documentation for more information.
Reach out on Discord for further assistance!
View Python SDK DocumentationThis feature is missing a code snippet or might not be supported yet.
Check the Go SDK documentation for more information.
Reach out on Discord for further assistance!
View Go SDK Documentationvar address = "{{wallet_address}}"; // address of the wallet you want to claim the NFTs
var quantity = 1; // how many unique NFTs you want to claim
var tx = await contract.ERC721.ClaimTo(address, quantity);