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.

airdropMax()

airdropMax(address addr, uint256 projectType)

Payable

Proposal - Not yet implemented.

Mint the maximum number of tokens for the value sent for a provided address, refunding the remainder.

This method can mint between 0 and ∞ tokens depending on the value sent, and will not fail if insufficient value is sent for a single token.

Arguments:

  • addr (address): Target address to mint the tokens against
  • projectType (uint256): Project ID mint

Example

Mint as many trees for 1 ETH (or 1e18 Wei) as possible.

seedchain.airdropMax{value: 1e18}(
    0x41694639E7445349D3Fe38BaE26BB717Bd4976Ea, // Target address
    100, // The project ID for trees
);