No-code
Further reading
airdropToHolder()
airdropToHolder(address contractAddress, uint256 tokenId, uint256[] types, uint256[] amounts)
Payable
Mint a number of tokens for each given type for the holder of a particular NFT in an ERC721 contract.
Arguments:
contractAddress
(address): Address of an ERC721 contracttokenId
(uint256): ID of a token in the provided contracttypes
(uint256): Array of impact types to mintamounts
(uint256): Quantity to mint for each typeRequires:
sender
to match contractAddress
or Seedchain owner. In the future, this will include deployer and owner.types
and amounts
to be arrays of of equal sizegetPrice()
.seedchain.airdropToHolder{value: price}(
0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d, // Contract address for Bored Apes
7537, // A token within Bored Apes
[100], // An array containing each impact type to mint
[1] // Quantity that we're minting for each impact type
);