function map_asset(asset: asset): (id: byte_array, name: text, symbol: text, decimals: integer, blockchain_rid: byte_array, icon_url: text, type: text, supply: big_integer)

Maps an asset's info into a readable format for the frontend.

Parameters

  • asset — the asset to retrieve
© 2024 Chromia