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

> function rate_ limit(account: account ) Rate limit an account, i.e. verify that the account is only sending up to as
many operations as are allowed in its 

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

FUNCTION

# rate\_limit

```signature
function rate_limit(account: account)
```

[Source](https://gitlab.com/chromaway/ft4-lib/-/blob/development/rell/src/lib/ft4/core/accounts/rate_limit.rell#lines-27)

Rate limit an account, i.e. verify that the account is only sending up to as
many operations as are allowed in its rl\_state.
By default, the rl\_state corresponds to the configuration found in the `chromia.yml` file.

Can only be called from an operation.

Throws `"RATE LIMITED"` if the account has exceeded the rate limit.

Throws `"MISSING RATE LIMITER STATE"` if the account does not have an `rl_state`. This
should generally never happen for user accounts, unless the `rl_state` entity has manually
been deleted.

**Parameters**

* **account** — the account to rate limit

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