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

> function parse_ asset_ limits_ from_ gtv(gtv: gtv): list< asset_limit >? Reads a GTV-encoded moduleArgs field containing asset limits. Throws "CONFIG ERROR

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

FUNCTION

# parse\_asset\_limits\_from\_gtv

```signature
function parse_asset_limits_from_gtv(gtv: gtv): list<asset_limit>?
```

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

Reads a GTV-encoded moduleArgs field containing asset limits.

Throws `"CONFIG ERROR"` if the asset limits are invalid.

Throws if the asset limits are improperly formatted.

**Parameters**

* **gtv** — the GTV-encoded configuration containing asset limits

**See Also**

* [asset\_limit](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.accounts.strategies/asset_limit/) — for examples of invalid values

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