Skip to main content

Token Metadatas

Queries token metadata information for all tokens.

query Token($limit: Int, $offset: Int, $dex: [String!], $chainUids: [String!]) {
token {
token_metadatas(limit: $limit, offset: $offset, dex: $dex, chain_uids: $chainUids) {
coinDecimal
displayName
tokenId
description
image
price
price_change_24h
price_change_7d
dex
chain_uids
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://devnet-testing.api.euclidprotocol.com/graphql' \
--data '{"query":"query Token($limit: Int, $offset: Int, $dex: [String!], $chainUids: [String!]) {\n token {\n token_metadatas(limit: $limit, offset: $offset, dex: $dex, chain_uids: $chainUids) {\n coinDecimal\n displayName\n tokenId\n description\n image\n price\n price_change_24h\n price_change_7d\n dex\n chain_uids\n }\n }\n}","variables":{"limit":null,"offset":null,"dex":null,"chainUids":"injective"}}'

Open in Playground

Arguments

  • limit (Int): Optional limit to the number of results to return.
  • offset (Int): Optional number of tokens to skip before starting to return the result set. Used for pagination.
  • dex ([String!]): Optional list of DEX identifiers to filter the token metadata.
  • chainUids ([String!]): Optional list of chain UIDs to filter the token metadata.

Return Fields

FieldTypeDescription
coinDecimalIntThe number of decimal places used by the token.
displayNameStringThe display name of the token.
tokenIdStringThe unique identifier for the token.
descriptionStringA brief description of the token.
imageStringURL to the token's image.
priceFloatThe current price of the token in USD.
price_change_24hFloatThe token's price change over the past 24 hours.
price_change_7dFloatThe token's price change over the past 7 days.
dexStringThe decentralized exchanges where the token is traded.
chain_uids[String]A list of chain UIDs where the token is available.