Skip to main content

Token Metadata API (v0.3.0)

Download OpenAPI specification:Download

Service that indexes metadata for every SIP-009, SIP-010, and SIP-013 Token in the Stacks blockchain and exposes it via REST API endpoints.

Tokens

Token metadata endpoints

Fungible Token Metadata

Retrieves metadata for a SIP-010 Fungible Token

path Parameters
principal
required
string (Fungible Token Contract Principal) [0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}\.[a...
Example: SP32XCD69XPS3GKDEXAQ29PJRDSD5AR643GNEEBXZ.fari-token

Principal for the contract which owns the SIP-010 token

query Parameters
locale
string (Localization)
Examples:
  • locale=es-MX -
  • locale=jp -

Metadata localization to retrieve

Responses

Response samples

Content type
application/json
{
  • "name": "Wrapped USD",
  • "symbol": "xUSD",
  • "decimals": 8,
  • "total_supply": "9999980000000",
  • "token_uri": "ipfs://ipfs/Qmf9yDYuPTrp8NRUFf8xxDd5Ud24Dx9uYMwMn8o8G2cWPW/12200.json",
  • "description": "Heavy hitters, all-stars and legends of the game join forces to create a collection of unique varsity jackets",
  • "image_canonical_uri": "ipfs://ipfs/QmZMqhh2ztwuZ3Y8PyEp2z5auyH3TCm3nnr5ZfjjgDjd5q/12199.png",
  • "tx_id": "0xef2ac1126e16f46843228b1dk4830e19eb7599129e4jf392cab9e65ae83a45c0",
  • "sender_address": "ST399W7Z9WS0GMSNQGJGME5JAENKN56D65VGMGKGA",
  • "metadata": {
    }
}

Non-Fungible Token Metadata

Retrieves metadata for a SIP-009 Non-Fungible Token

path Parameters
principal
required
string (Non-Fungible Token Contract Principal) [0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}\.[a...
Example: SP497E7RX3233ATBS2AB9G4WTHB63X5PBSP5VGAQ.boomboxes-cycle-12

SIP-009 compliant smart contract principal

token_id
required
integer (Token ID)
Example: 35

Token ID to retrieve

query Parameters
locale
string (Localization)
Examples:
  • locale=es-MX -
  • locale=jp -

Metadata localization to retrieve

Responses

Response samples

Content type
application/json
{
  • "token_uri": "ipfs://ipfs/Qmf9yDYuPTrp8NRUFf8xxDd5Ud24Dx9uYMwMn8o8G2cWPW/12200.json",
  • "metadata": {
    }
}

Semi-Fungible Token Metadata

Retrieves metadata for a SIP-013 Semi-Fungible Token

path Parameters
principal
required
string (Semi-Fungible Token Contract Principal) [0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}\.[a...
Example: SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.key-alex-autoalex-v1

SIP-013 compliant smart contract principal

token_id
required
integer (Token ID)
Example: 35

Token ID to retrieve

query Parameters
locale
string (Localization)
Examples:
  • locale=es-MX -
  • locale=jp -

Metadata localization to retrieve

Responses

Response samples

Content type
application/json
{
  • "token_uri": "ipfs://ipfs/Qmf9yDYuPTrp8NRUFf8xxDd5Ud24Dx9uYMwMn8o8G2cWPW/12200.json",
  • "decimals": 6,
  • "total_supply": "250",
  • "metadata": {
    }
}

Status

Service status endpoints

API Status

Displays the status of the API and its current workload

Responses

Response samples

Content type
application/json
{
  • "server_version": "token-metadata-api v0.0.1 (master:a1b2c3)",
  • "status": "ready",
  • "tokens": {
    },
  • "token_contracts": {
    },
  • "job_queue": {
    }
}