# mint · FT4 Rell API · Chromia Docs (concept)

> function mint(account: account , asset: asset , amount: big_ integer) Creates new tokens, increasing the total supply by the amount being minted, and gives

Source: https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.assets.Unsafe/mint/

FUNCTION

# mint

```signature
function mint(account: account, asset: asset, amount: big_integer)
```

[Source](https://gitlab.com/chromaway/ft4-lib/-/blob/development/rell/src/lib/ft4/core/assets/asset.rell#lines-505)

Creates new tokens, increasing the total supply by the amount being minted, and gives
them to an account. It's marked as Unsafe, as it doesn't check who is authorizing the
minting, meaning any user could mint tokens to any account if this was exposed.

The functionality of `mint` can be expanded by using `before_mint` and `after_mint`

Throws `"UNAUTHORIZED MINTING"` if the asset's issuing blockchain is not this blockchain

Throws `"INVALID AMOUNT"` if the asset's total supply, increased by the amount
being minted, is higher than 2^256.

Throws if the required assets 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

Can only be called from an operation.

**Parameters**

* **account** — the account to give the newly minted tokens to
* **asset** — the asset to mint
* **amount** — the amount of tokens to mint

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-rell/-f-t4%20-library/lib.ft4.core.assets.Unsafe/mint.html)Generated API reference, mirrored from the live docs
