Skip to main content

Token Info

Queries token information for the specified CW20 address and chain.

query Cw($contract: String!, $chainUid: String!) {
cw(contract: $contract, chain_uid: $chainUid) {
token_info {
name
symbol
decimals
total_supply
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://api.euclidprotocol.com/graphql' \
--data '{"query":"query Cw($contract: String!, $chainUid: String!) {\n cw(contract: $contract, chain_uid: $chainUid) {\n token_info {\n name\n symbol\n decimals\n total_supply\n }\n }\n}","variables":{"contract":"wasm1rluylt6fnh5a55szyuh2qsg69nfsgcwm5faq8ujesdtd0yfugnkq2ft2ax","chainUid":"ethereum"}}'

Open in Playground

Return Fields

FieldTypeDescription
nameStringThe name of the token.
symbolStringThe symbol of the token.
decimalsu8The number of decimal places of the token.
total_supplyUint128The total supply of the token.