register_asset

@mount("ft4.test.register_asset") operation register_asset(name: text, symbol: text, decimals: integer, issuing_blockchain_rid: byte_array, icon_url: text)(source)

Operation to register a new asset on the blockchain with the provided info. Note however that the initial balance of this asset is alway 0 so to actually use this newly created asset, you will have to mint some of it.

Parameters

name

the name of the asset

symbol

symbol or ticker of the asset

decimals

how many decimals to use for this asset

issuing_blockchain_rid

the rid of the issuing blockchain. In most cases this should be chain_context.blockchain_rid

icon_url

optional url to an icon for this asset

See also

mint

mint