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

> @extendable function before_ mint(account: account , asset: asset , amount: big_ integer) Extendable function that allows the developer to add more functio

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

FUNCTION

# before\_mint

```signature
@extendable function before_mint(account: account, asset: asset, amount: big_integer)
```

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

Extendable function that allows the developer to add more functionality to the
`mint` function, before the mint happens.

This allows, for example, to check that any given condition is present before minting
is allowed.

If this function throws an exception, the asset will not be minted.

Throws if any extension of this function throws.

**Parameters**

* **account** — the account that is going to receive the newly minted tokens
* **asset** — the asset that is going to be minted
* **amount** — the amount of tokens that is going to be minted

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