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 });

Parameters

Returns

The prepared transaction