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

> function ensure_ account_ without_ auth(account_ id: byte_ array, type: text): account Finds or creates an account of specific type. Can only be called fro

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

FUNCTION

# ensure\_account\_without\_auth

```signature
function ensure_account_without_auth(account_id: byte_array, type: text): account
```

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

Finds or creates an account of specific type.

Can only be called from an operation.

Throws `"MISMATCHING TYPE"` if an account with given ID exists, but the type is not the one
passed.

**Parameters**

* **account\_id** — account id to find
* **type** — expected account type

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