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
Parameter | Type | Description |
---|---|---|
amount | Amount | Quantity of the tokens you want to claim |
options | ClaimOptions | (Optional) |
Returns:
Promise<TransactionResult>
- The transaction receipt
Remarks
Let the specified wallet claim Tokens.