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