Module-level declarations

Operations

Link copied to clipboard
@mount("ft4.admin.register_crosschain_asset") operation register_crosschain_asset(id: byte_array, name: text, symbol: text, decimals: integer, issuing_blockchain_rid: byte_array, icon_url: text, type: text, uniqueness_resolver: byte_array, origin_blockchain_rid: byte_array)

Registers an asset coming from a different chain. This allows other chains to send this asset to accounts on this chain.

Throws if not called by an admin.

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

  • the input parameters do not follow this criteria:

    • IDs are 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)

  • any of the two blockchain RIDs is this chain's RID

  • icon_url is not a valid URL