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
orafter_mint
) aren't metthe 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