claimTo

Claim ERC1155 NFTs to a specified address

Example

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

Parameters

The options for the transaction

Type

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

The prepared transaction