ENTITY
asset
An asset represents anything that is fungible. It can be more than money, like resources in a game.
entity asset {
key id: byte_array;
key name: text;
key symbol: text;
decimals: integer;
key issuing_blockchain_rid: byte_array;
mutable icon_url: text;
index type: text;
mutable total_supply: big_integer;
key uniqueness_resolver: byte_array = x"";
}key id: byte_array;Unique identifier for an instance of this entity
key name: text;Display name of the asset. Need not be unique.
key symbol: text;Symbol of this asset, typically an all caps string of three or four letters. Used for display purposes and need not be unique.
decimals: integer;Number of decimals used by this asset, which will affect how to interpret a balance of this decimal. E.g., 10000 with decimals 1 would be interpreted as 1000,0 while 10000 with decimals 2 would be interpreted as 100,00
key issuing_blockchain_rid: byte_array;The rid of the blockchain that is issuing this asset if this is a cross chain asset. For non-cross chain assets, this field will be the same as this blockchain's RID.
mutable icon_url: text;A URL to an icon for this asset. Used only for display purposes in UI applications.
index type: text;The type of asset. Defaults to ASSET_TYPE_FT4
mutable total_supply: big_integer;Integer representing the total supply of this asset. Can change as assets is minted/burnt.
key uniqueness_resolver: byte_array = x"";Attribute that contains additional data to discern assets that are registered with the same name and symbol.