Skip to main content

Erc20.claim() method

Claim a certain amount of tokens to the connected Wallet

Example

const address = "{{wallet_address}}"; // address of the wallet you want to claim the NFTs
const quantity = 42.69; // how many tokens you want to claim

const tx = await contract.erc20.claim(address, quantity);
const receipt = tx.receipt; // the transaction receipt

Signature:

claim(amount: Amount, options?: ClaimOptions): Promise<TransactionResult>;

Parameters

ParameterTypeDescription
amountAmountQuantity of the tokens you want to claim
optionsClaimOptions(Optional)

Returns:

Promise<TransactionResult>

  • The transaction receipt

Remarks

Let the specified wallet claim Tokens.