Erc721.claim() method
Claim unique NFTs to the connected wallet
Example
const quantity = 1; // how many unique NFTs you want to claim
const tx = await contract.erc721.claim(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
Signature:
claim(quantity: BigNumberish, options?: ClaimOptions): Promise<TransactionResultWithId<NFT>[]>;
Parameters
Parameter | Type | Description |
---|---|---|
quantity | BigNumberish | Quantity of the tokens you want to claim |
options | ClaimOptions | (Optional) |
Returns:
Promise<TransactionResultWithId<NFT>[]>
- an array of results containing the id of the token claimed, the transaction receipt and a promise to optionally fetch the nft metadata
Remarks
Let the specified wallet claim NFTs.