register_asset_with_type

@mount("ft4.admin.register_asset_with_type") operation register_asset_with_type(name: text, symbol: text, decimals: integer, icon_url: text, type: text)(source)

Like register_asset, but allows specifying a type for the asset as well.

Throws if not signed by the admin.

Throws if the asset cannot be registered. Common cases include:

  • the input parameters do not follow this criteria:

    • strings are longer than 1024 characters

    • type is empty

    • decimals is not in the accepted range 0, 78 (inclusive)

  • icon_url is not a valid URL

Parameters

name

the name of the asset

symbol

the symbol (or ticker) of the asset

decimals

the number of decimals this asset will have

icon_url

an URL to an icon of the asset to register, can be an empty string in case of no icon url

type

the type of the asset to register, in most cases thisshould be set to the value of core.asset.ASSET_TYPE_FT4

See also

register_asset

if you will use asset.ASSET_TYPE_FT4 as type

asset.ASSET_TYPE_FT4

to have more informations on asset types