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

> function register_ asset(name: text, symbol: text, decimals: integer, blockchain_ rid: byte_ array, icon_ url: text, type: text): asset Registers a new ass

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

FUNCTION

# register\_asset

```signature
function register_asset(name: text, symbol: text, decimals: integer, blockchain_rid: byte_array, icon_url: text, type: text): asset
```

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

Registers a new asset on this chain. It's marked as Unsafe, as it allows creating
entities and its usage must be restricted to ensure disk usage doesn't grow indefinitely.
The starting supply will be 0.

Throws if the input parameters are invalid. Common cases include:

* `blockchain_rid` is not 32 bytes long
* strings are longer than 1024 characters
* type is empty
* uniqueness resolver is longer than 1024 bytes
* decimals is not in the accepted range [0, 78] (inclusive)
* `icon_url` is not a valid URL

Can only be called from an operation.

**Parameters**

* **name** — the name of the asset
* **symbol** — the symbol of the asset
* **decimals** — the decimals of the asset
* **blockchain\_rid** — the RID of the asset issuing blockchain
* **icon\_url** — the URL of the asset icon
* **type** — the type of the asset, defaults to `ASSET_TYPE_FT4`

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