claimTo

Claim ERC20 NFTs to a specified address

Example

import { claimTo } from "thirdweb/extensions/erc20";
import { sendTransaction } from "thirdweb";
const transaction = claimTo({
contract,
to: "0x...",
quantity: 100n,
});
await sendTransaction({ transaction, account });
function claimTo(

Parameters

The options for the transaction

Type

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A promise that resolves with the submitted transaction hash.