SEEDCHAIN is experimental software and these docs may get out of date quickly. Please join the Discord server for up to date information and support.

mint()

mint(uint256 type, uint256 amount)

Payable

Mint a number of tokens of a given type for the sender.

Arguments:

  • type (uint256): Project ID mint
  • amount (uint256): Quantity to mint

Requires:

  • Value to be sent that matches the price for the project for the given quantity. See getPrice().

Example

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 mint
  • amounts (uint256): Quantity to mint for each type

Requires:

  • types and amounts to be arrays of of equal size
  • Value to be sent that matches the total price for all projects. See getPrice().

Example

seedchain.mint{value: price}(
    [100, 101], // An array containing each project to mint
    [1, 2] // Quantity that we're minting for each type
);