Using the v3 Dataset
Overview
The Token Name Service v3 uses The Graph for efficient data querying. The endpoint for accessing data is query.graph.tkn.xyz/subgraphs/name/tkn/v3. Additionally, the contract data is stored on Data Chain and can be accessed through a proxy contract.
GraphQL Queries
Get Token Information by Symbol
Retrieve detailed information about a token using its symbol.
{
tokens(where: { symbol: "WETH" }) {
id
name
description
symbol
avatar
dweb
discord
decimals
addresses {
tokenAddress
chainID {
id
}
}
}
}This query returns:
Basic token information (name, symbol, description)
Media assets (avatar, dweb)
Social links (discord)
Technical details (decimals)
Contract addresses across different chains
Get Token Information by Contract Address
Look up token information using a contract address.
This query returns:
Chain information
Token address details (EVM and non-EVM)
Associated token metadata
Social media links
Contract Queries
The contract data is stored on Data Chain and can be accessed through the proxy contract at 0x7b02d739D95758F09dDc7e44FA951cd45D97247A.
Additional Resources
Last updated
Was this helpful?