Introduction
Polymesh is built with Substrate, which is a framework and a set of modules for creating a blockchain. Substrate provides tools that offer low-level access to everything that happens on a Substrate network and these tools work with Polymesh.
The Polymesh Substrate App is such a tool. It is typically used by developers to explore the blockchain and transactions in depth.
Update an asset with the Polymesh App
Update asset identifier (Security Identifiers):
- Navigate to the Polymesh App.
- For the account at the top, select your account in your wallet.
- For the extrinsic, select “asset”, then "updateIdentifiers", as per the below screenshot:
Click here to see this image at full resolution. - Enter the Asset ID in the assetId field.
Click here to see this image at full resolution.
-
Asset identifier: Select the appropriate asset identifier from the dropdown menu, then enter the value below in its original format. In this example, we are adding a CUSIP identifier to our asset:
Click here to see this image at full resolution.
Approved values per asset identifiers:
- CUSIP: 9 characters
- CINS: 9 characters
- ISIN: 12 characters
- LEI: 20 characters
- FIGI: 12 characters
- Once all data are filled, click on "Submit transaction" then sign the transaction with your wallet. You will see a green popup if the transaction is successful.
Click here to see this image at full resolution. -
You can verify the updated asset identifier in the Polymesh Token Studio.
Add a custom identifier (Asset Metadata):
With Asset Metadata, asset issuers can capture various simple metadata about their assets on the chain.
- Issuers can set local asset metadata types only. Local types are unique for each asset.
- Asset metadata can be permanently locked, or locked for a limited amount of time (1 month, 1 year, etc...).
To add custom metadata to your asset, please follow the process below:
- Navigate to the Polymesh App.
- For the account at the top, select your account in your wallet.
- For the extrinsic, select “asset”, then "registerAndSetLocalAssetMetadata", as per the below screenshot:
Click here to see this image at full resolution. - Enter the Asset ID to the assetId field.
Click here to see this image at full resolution.
Note: Use a HEX converter like this one. For the Output delimiter string, select "None".
Example: Your Asset ID is "ASSETIDTEST", which is "4153534554494454455354" in HEX. This HEX value should be padded with zeros to be 16 bytes like "0x4153534554494454455354000000000" with a 0x prefix, so the value you should enter is "0x544553544B4E00000000000".
Shorter Asset IDs than 16 characters in HEX should be also padded with zeros up to 16 characters. ASCII characters are also allowed but should be padded with spaces up to 16 characters.
-
You can add a URL, description, and type definition by enabling the "include option" toggle.
Values should be in HEX format,the same process as for the Asset ID:
Click here to see this image at full resolution.
- Value: Enter the value for the asset metadata. It should be in its original format, numbers and letters are allowed. You can also upload a file instead by enabling the "file upload" toggle:
Click here to see this image at full resolution. - Once all data are filled, click on "Submit transaction" then sign the transaction with your wallet. You will see a green popup if the transaction is successful.
Click here to see this image at full resolution.
Comments
0 comments
Please sign in to leave a comment.