claimTo

Claim ERC721 NFTs to a specified address

Example

import { claimTo } from "thirdweb/extensions/erc721";
import { sendTransaction } from "thirdweb";
const transaction = claimTo({
contract,
to: "0x...",
quantity: 1n,
});
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.