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

> function validate_ asset_ id(id: byte_ array) Ensures that the ID has exactly 32 bytes Throws "INVALID ID" otherwise. Parameters id — the id to validate

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

FUNCTION

# validate\_asset\_id

```signature
function validate_asset_id(id: byte_array)
```

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

Ensures that the ID has exactly 32 bytes

Throws `"INVALID ID"` otherwise.

**Parameters**

* **id** — the id to validate

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