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

> function ensure_ chain_ fee_ account(custom_ account_ id: byte_ array?): account Returns the fee account for this chain, creating it if needed. Can only be

Source: https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.accounts.strategies.transfer/ensure_chain_fee_account/

FUNCTION

# ensure\_chain\_fee\_account

```signature
function ensure_chain_fee_account(custom_account_id: byte_array?): account
```

[Source](https://gitlab.com/chromaway/ft4-lib/-/blob/development/rell/src/lib/ft4/core/accounts/strategies/transfer/module.rell#lines-718)

Returns the fee account for this chain, creating it if needed.

Can only be called from an operation.

Throws if `custom_account_id` is not null, but the account specified does not exist.

**Parameters**

* **custom\_account\_id** — the ID of the fee account that should be used for this chain, or null if the account can be generated automatically

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