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.

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 against
  • type (uint256): Project ID to 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.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 against
  • types (uint256): Array of impact types to airdrop
  • amounts (uint256): Quantity to airdrop 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.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
);