mint

@mount("ft4.admin.mint") operation mint(account_id: byte_array, asset_id: byte_array, amount: big_integer)(source)

Mints assets and gives them to an account.

Throws if not signed by the admin.

Throws if the account or the asset is not found.

Throws if the asset cannot be minted. Common cases include:

  • the amount to mint is not in the accepted range (0, 2^256) (exclusive)

  • some conditions added in development through mint extensions (before_mint or after_mint) aren't met

  • the asset's issuing blockchain is not this blockchain

  • the asset's total supply, increased by the amount being minted, is higher than 2^256

Parameters

account_id

the account that will receive the assets

asset_id

the asset to mint

amount

the amount to mint