FUNCTION
add_rate_limit_points
function add_rate_limit_points(account: account, amount: integer)Adds rate limit points to an account to allow calling more operations in a short amount
of time. Rate limit points never exceed the config value for max_points.
Can only be called from an operation.
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 add points to
- amount — the number of points to add
See Also
- [
core.accounts.account_rate_limit_config] — to set up a different limit formax_points
© 2024 Chromia