Implements TZIP-16 norm for contract's metadata.
Adds or removes an entry to the
Below is a typical metadata file:
There are 2 ways to associate this metadata to a contract:
- upload the file to a public storage (typically
IPFS) and store the URI in the contract's
metadatamap (as the value of key
- store metadata fields in the contract's
The association may be done at deployment time with Completium CLI:
Thre following command deploys a contract and specifies the IPFS URI:
... is replaced by the IPFS hash obtained when uploading to IPFS.
This is the preferred way since indexers will automatically retrieve the metadata from IPFS.
This can also be done once the contract is deployed with the
Note that the URI is sent in bytes format.