Skip to main content

Erc1155.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, options?: ClaimOptions): Promise<TransactionTask>;

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<TransactionTask>