Erc1155.claim() method
Claim NFTs
Example
const tokenId = 0; // the id of the NFT you want to claim
const quantity = 1; // how many NFTs you want to claim
const tx = await contract.erc1155.claim(tokenId, quantity);
const receipt = tx.receipt; // the transaction receipt
Signature:
claim(tokenId: BigNumberish, quantity: BigNumberish, options?: ClaimOptions): Promise<TransactionResult>;
Parameters
Parameter | Type | Description |
---|---|---|
tokenId | BigNumberish | Id of the token you want to claim |
quantity | BigNumberish | Quantity of the tokens you want to claim |
options | ClaimOptions | (Optional) Optional claim verification data (e.g. price, currency, etc...) |
Returns:
Promise<TransactionResult>
- Receipt for the transaction
Remarks
Let the connected wallet claim NFTs.