Asset Metadata Descriptor
Requirements
Asset meta is a byte buffer associated with the asset and stored on chain.
- Asset metadata should be an UTF-8 string
- Asset metadata 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
Properties
Asset metadata has 2 groups of properties:
- Standard properties
- Optional properties
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.
Required properties:
SCH_VER=
metadata schema version, currently must be1
N=
human-readable asset name, for exampleBeam Coin
SN=
human-readable short name/asset code, for exampleBEAM
. Length should not exceed 6 charactersUN=
human-readable asset unit name, for exampleBeam
NTHUN=
human-readable smallest asset unit name (nth-unit name), for exampleGroth
Optional properties
NTH_RATIO=
integer that represents the ratio of the smallest asset unit to regular unit. If omitted default value of100000000
is usedOPT_SHORT_DESC=
an one-liner, should not exceed 128 charactersOPT_LONG_DESC=
a paragraph, should not exceed 1024 charactersOPT_SITE_URL=
URL of the asset websiteOPT_PDF_URL=
URL for the description paperOPT_FAVICON_URL=
URL of the faviconOPT_LOGO_URL=
URL of the logo in SVG vector formatOPT_COLOR=
color in the hex format (#FF00FF for example) to be used by the UI to display this asset. If not specified default color would be generated. Currently default colors are based on the asset id
Examples
- with required properties only:
--asset_meta "STD:SCH_VER=1;N=Beam Coin;SN=BEAM;UN=Beam;NTHUN=Groth"
- with required and optional properties:
--asset_meta "STD:SCH_VER=1;N=Beam Coin;SN=BEAM;UN=Beam;NTHUN=Groth;NTH_RATIO=1000;OPT_SHORT_DESC=Off with their heads!;OPT_LONG_DESC=The fact that this catch phrase ... this story remains a part of popular culture.;OPT_SITE_URL=https://***/*;OPT_PDF_URL=https://***;OPT_FAVICON_URL=https://***/;OPT_LOGO_URL=https://***;OPT_COLOR=#FF00FF" --fee 100000 --enable_assets