-
Notifications
You must be signed in to change notification settings - Fork 16
Standard metadata format
JinGyeong Jeong edited this page Apr 1, 2019
·
6 revisions
Block explorer uses a json string format metadata in asset mint transaction for showing asset information. Follow the format below to show the correct information.
| field | format |
|---|---|
| name | maximum 30 characters limit |
| description | maximum 200 characters limit |
| type | "asset" | "vote" |
| icon_url (optional) | 180px × 180px (png, jpg, svg) |
| gateway.url (optional) | HTTP API URL for sending a transaction |
{
“name”: “Sample Asset”,
“description”: “This is a sample asset for test.”,
“icon_url”: “https://sample.com/sample/icon.png”,
"gateway": {
"url": "https://gateway.codechain.io/api/transaction"
}
}