Skip to content

Standard metadata format

JinGyeong Jeong edited this page Apr 1, 2019 · 6 revisions

Standard metadata format

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

Sample

{
    “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"
    }
}

Clone this wiki locally