EditionDrop.getClaimTransaction() method
Construct a claim transaction without executing it. This is useful for estimating the gas cost of a claim transaction, overriding transaction options and having fine grained control over the transaction execution.
Signature:
getClaimTransaction(destinationAddress: string, tokenId: BigNumberish, quantity: BigNumberish, checkERC20Allowance?: boolean): Promise<TransactionTask>;
Parameters
Parameter | Type | Description |
---|---|---|
destinationAddress | string | Address you want to send the token to |
tokenId | BigNumberish | Id of the token you want to claim |
quantity | BigNumberish | Quantity of the tokens you want to claim |
checkERC20Allowance | boolean | (Optional) Optional, check if the wallet has enough ERC20 allowance to claim the tokens, and if not, approve the transfer |
Returns:
Promise<TransactionTask>