Two metadata sources
CIP-113 support
Working with programmable tokens?
The registry identifies registered programmable-token policies and returns their script information in addition to the token's metadata. Names, tickers and logos still come from CIP-26 or CIP-68.
Read the programmable tokens guideOne subject, one answer
Ask for a token by its policy id and asset name. Each property comes from the standard that has it, on-chain first by default, and says where it came from.
Errors you can act on
A token that breaks its standard is still served, with validation errors naming the field and the rule. Wallets choose how strict to be.
GET /api/v2/subjects/<policy id><asset name>
{
"subject": {
"type": "NATIVE",
"metadata": {
"name": { "value": "My Token", "source": "CIP_68" },
"ticker": { "value": "MTK", "source": "CIP_68" },
"decimals": { "value": 6, "source": "CIP_68" },
"valid": true
},
"validation_errors": []
}
}