Hanzo AI
OpenapiMarket

List tokens

Answers the tokens one chain's indexer has seen, with the decimals a caller needs to read any amount of one correctly.

GET /v1/market/tokens

Addresshttps://api.hanzo.ai/v1/market/tokens
MethodGET
Operationget_market_tokens
AuthAuthorization: Bearer $HANZO_API_KEY

Answers the tokens one chain's indexer has seen, with the decimals a caller needs to read any amount of one correctly.

This is what the indexer INGESTED, which is not the same as what exists on the chain: a token nothing has traded has no row here, and this is not a registry of what is permitted or listed.

Request

1 field.

FieldInTypeRequiredDescription
chainquerystringChain is the chain's slug — cchain, zoo — as chains reports it.

Response

StatusBodyMeaning
200market.Tokensok
defaultproblem-detailsrefused

200 body — 9 fields.

FieldInTypeAlwaysDescription
chainbodystring
reachbodymarket.Reach
reach.atbodystringAt is read, unconfigured, unreachable or refused.
reach.whybodystringWhy is the upstream's own words, on Unreachable and Refused, and empty otherwise.
tokensbodymarket.Token[]Tokens is [] where the indexer holds none and null where the read failed.
tokens[].atbodystringAt is the token's contract address, lowercase.
tokens[].decimalsbodyinteger (int64)
tokens[].namebodystring
tokens[].symbolbodystring

Failure carries the platform error shape — see Errors.

Examples

hanzo market tokens

Market API · All Hanzo APIs · Interactive reference

How is this guide?

On this page