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

> function validate_ recipient_ id(recipient_ id: byte_ array) Checks if the recipient id has the correct size Throws "INVALID RECIPIENT ID" if the recipient

Source: https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/validate_recipient_id/

FUNCTION

# validate\_recipient\_id

```signature
function validate_recipient_id(recipient_id: byte_array)
```

[Source](https://gitlab.com/chromaway/ft4-lib/-/blob/development/rell/src/lib/ft4/utils/utils.rell#lines-115)

Checks if the recipient id has the correct size

Throws `"INVALID RECIPIENT ID"` if the recipient's id length is longer than 1024 bytes

Should be used inside other functions to validate the size of the recipient's id in transfers

Example: `validate_recipient_id(x"")`
will throw this error: `"INVALID RECIPIENT ID: x"". Recipient id has invalid length. Expected 1024 bytes, but found <0>"`

**Parameters**

* **recipient\_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.utils/validate_recipient_id.html)Generated API reference, mirrored from the live docs
