register_asset_with_type
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
the name of the asset
the symbol (or ticker) of the asset
the number of decimals this asset will have
an URL to an icon of the asset to register, can be an empty string in case of no icon url
the type of the asset to register, in most cases thisshould be set to the value of core.asset.ASSET_TYPE_FT4
See also
if you will use asset.ASSET_TYPE_FT4
as type
to have more informations on asset types