Skip to main content

Erc1155.claimTo() method

Claim NFTs to a specific Wallet

Example

const address = "{{wallet_address}}"; // address of the wallet you want to claim the NFTs
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.claimTo(address, tokenId, quantity);
const receipt = tx.receipt; // the transaction receipt

Signature:

claimTo(destinationAddress: string, tokenId: BigNumberish, quantity: BigNumberish, options?: ClaimOptions): Promise<TransactionResult>;

Parameters

ParameterTypeDescription
destinationAddressstringAddress you want to send the token to
tokenIdBigNumberishId of the token you want to claim
quantityBigNumberishQuantity of the tokens you want to claim
optionsClaimOptions(Optional) Optional claim verification data (e.g. price, currency, etc...)

Returns:

Promise<TransactionResult>

  • Receipt for the transaction

Remarks

Let the specified wallet claim NFTs.