mirror of
https://github.com/alexgo-io/stacks-blockchain-api.git
synced 2026-04-30 22:02:35 +08:00
* fix: openapi lint validator * fix: balances schema * fix: add title to all entities * fix: some additionalProperties and duplicate names * fix: remove additional properties for rosetta * fix: rosetta tests * style: remove empty description
55 lines
1.9 KiB
JSON
55 lines
1.9 KiB
JSON
{
|
|
"title": "FungibleTokenMetadata",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"token_uri",
|
|
"name",
|
|
"description",
|
|
"image_uri",
|
|
"image_canonical_uri",
|
|
"symbol",
|
|
"decimals",
|
|
"tx_id",
|
|
"sender_address"
|
|
],
|
|
"properties": {
|
|
"token_uri": {
|
|
"type": "string",
|
|
"description": "An optional string that is a valid URI which resolves to this token's metadata. Can be empty."
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"description": "Identifies the asset to which this token represents"
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"description": "Describes the asset to which this token represents"
|
|
},
|
|
"image_uri": {
|
|
"type": "string",
|
|
"description": "A URI pointing to a resource with mime type image/* representing the asset to which this token represents. The API may provide a URI to a cached resource, dependending on configuration. Otherwise, this can be the same value as the canonical image URI."
|
|
},
|
|
"image_canonical_uri": {
|
|
"type": "string",
|
|
"description": "The original image URI specified by the contract. A URI pointing to a resource with mime type image/* representing the asset to which this token represents. Consider making any images at a width between 320 and 1080 pixels and aspect ratio between 1.91:1 and 4:5 inclusive."
|
|
},
|
|
"symbol": {
|
|
"type": "string",
|
|
"description": "A shorter representation of a token. This is sometimes referred to as a \"ticker\". Examples: \"STX\", \"COOL\", etc. Typically, a token could be referred to as $SYMBOL when referencing it in writing."
|
|
},
|
|
"decimals": {
|
|
"type": "number",
|
|
"description": "The number of decimal places in a token."
|
|
},
|
|
"tx_id": {
|
|
"type": "string",
|
|
"description": "Tx id that deployed the contract"
|
|
},
|
|
"sender_address": {
|
|
"type": "string",
|
|
"description": "principle that deployed the contract"
|
|
}
|
|
}
|
|
}
|