Token Metadata API (v0.7.0-beta.5)

Download OpenAPI specification:Download

Welcome to the API reference overview for the Token Metadata API. 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 Tokens

Retrieves a list of Fungible Tokens

query Parameters
name
string
symbol
string
address
string (Stacks Address) ^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}
Example: address=SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9

Stacks Address

offset
integer (Offset) >= 0

Result offset

limit
integer (Limit) [ 1 .. 60 ]

Results per page

Order By (string) or Order By (string) (Order By)

Parameter to order results by

Order (string) or Order (string) (Order)

Results order

Responses

Response samples

Content type
application/json
{
  • "limit": 20,
  • "offset": 0,
  • "total": 1,
  • "results": [
    ]
}

Fungible Token Metadata

Retrieves metadata for a SIP-010 Fungible Token

path Parameters
principal
required
string (Fungible Token Contract Principal) ^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}\.[...
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
{}

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}\.[...
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
{}

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}\.[...
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
{}

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