Creating Assets
When creating an asset, you need to know what type of asset you want, the name of the asset, the amount of an asset, how much it costs to create an asset, and the metadata associated with an asset.
Assets cannot be differentiated against one another except through their names. This means that all asset names must be unique; an asset creation will not be accepted by the chain if the name is not unique.
Asset names are encoded via the ascii scheme. This means that asset names can currently only be in the latin alphabet.
The cost of creating an asset can also be see more of as cost to "reserve the name"; this cost is static no matter how much of an asset you create (However, do note that it costs 100 YERB to reissue an asset).
When creating a child asset the parent asset and parent ownership asset have no control over it. If you wish to have more control over assets, see restricted assets
To put this information in a more readable format, all of the upcoming asset types will contain the following chart:
Metadata | Information |
---|---|
Asset Name | Name specifications |
Ownership Asset | Ownership specifications |
Prerequisites | Prerequisite specifications |
Asset Amount | Amount specifications |
Cost | Cost specifications |
Reissuability | Reissuability specifications |
Divisibility | Divisibility specifications |
Associated Data | Associated data specifications |
This table denotes the fields avaliable and their limitations.
For instance, an ownership asset table looks like this:
Metadata | Information |
---|---|
Asset Name | Base asset name + '!' |
Ownership Asset | No associated ownership asset |
Prerequisites | Created with another asset |
Asset Amount | There can only be 1 of some ownership asset |
Cost | Comes with the base asset |
Reissuability | Cannot be reissued |
Divisibility | Has 0 divisibility |
Associated Data | No data can be associated |