-
Notifications
You must be signed in to change notification settings - Fork 206
Asset Descriptor v1.0
chapati edited this page Jul 1, 2020
·
19 revisions
The assets are described here
This document's purpose is to specify the asset metadata, to enable 3rd party tools to consume and display the subset of asset-related information in a simple and well-standardized manner.
Asset meta is a byte buffer associated with the asset and stored on chain.
- Asset metadata should be an UTF-8 string
- Asset m etadata should be serialized as a simple name=value set of pairs, delimited with
;
- The
keyN=valueN;
sequence must be preceded withSTD:
prefix, there is no need for;
at the sequence end - The total size of the metadata cannot exceed 16 Kbytes (16,384 bytes)
- Every description should be in English
- Standard properties
- Optional properties
WARNING: Both types of properties are immutable and can't be changed after the asset is created. Therefore it is strongly recommended to double-check the values before starting the asset registration.
-
N=
Human-readable asset name, for example Beam Coin -
SN=
Human-readable short name/asset code, for example BEAM -
UN=
Human-readable asset unit name, for example Beam -
NTHUN=
Human-readable smallest asset unit name (nth-unit name), for example Grot
-
OPT_SCHEMA_VER=
optional meta version, currently must b1
-
OPT_SHORT_DESC=
an one-liner, should not exceed 128 characters -
OPT_LONG_DESC=
a paragraph, should not exceed 1024 characters -
OPT_SITE_URL=
URL of the asset website -
OPT_PDF_URL=
URL for the description paper -
OPT_FAVICON_URL=
URL of the favicon -
OPT_LOGO_URL=
URL of the logo in SVG vector format -
OPT_NTH_RATIO=
the number that represents the ratio of the smallest asset unit to regular unit. If omitted default value of100000000
is used