Beta
an instance of a Erc1155
a mutation object that can be used to transfer batch NFTs
const Component = () => {
const { contract } = useContract("{{contract_address}}");
const {
mutate: airdropNFT,
isLoading,
error,
} = useAirdropNFT(contract);
if (error) {
console.error("failed to transfer batch NFTs", error);
}
return (
<button
disabled={isLoading}
onClick={() => airdropNFT({
tokenId: 2,
addresses: [
{ address: "{{wallet_address}}", quantity: 2 },
{ address: "{{wallet_address}}", quantity: 4 } }
]
)}
>
Airdrop NFT
</button>
);
};
ERC1155
Generated using TypeDoc
Airdrop NFTs to a list of wallets