No-code
Further reading
airdrop()
airdrop(address addr, uint256 type, uint256 amount)
Payable
Mint a number of tokens for each given type for a provided address.
Arguments:
addr
(address): Target address to mint the tokens againsttype
(uint256): Project ID to mintamount
(uint256): Quantity to mintRequires:
getPrice()
.seedchain.airdrop{value: price}(
0x41694639E7445349D3Fe38BaE26BB717Bd4976Ea, // Target address
100, // The project ID for trees
1 // Quantity that we're airdroping
);
airdrop(addr address, uint256[] types, uint256[] amounts)
Payable
Mint a number of tokens for each given type for a provided address.
Arguments:
addr
(address): Target address to mint the tokens againsttypes
(uint256): Array of impact types to airdropamounts
(uint256): Quantity to airdrop for each typeRequires:
types
and amounts
to be arrays of of equal sizegetPrice()
.seedchain.airdrop{value: price}(
0x41694639E7445349D3Fe38BaE26BB717Bd4976Ea, // Target address
[100, 101], // An array containing each project to airdrop
[1, 2] // Quantity that we're airdroping for each type
);