Get Token Total Supply and Market Cap
Historical data This query uses the realtime dataset (the default), which holds only a recent window - hours to days depending on the cube. For older data add a dataset to the top-level element: EVM(network: base, dataset: combined) archive full history combined archive + realtime in one result A
What it returns
- block time
- block number
- currency symbol
- currency name
- smart contract
- decimals
- total supply
- total supply in USD
Filters
- currency smart contract is 0x9401…8631
The query
# Historical data
# This query uses the realtime dataset (the default), which holds only a
# recent window - hours to days depending on the cube.
#
# For older data add a dataset to the top-level element:
#
# EVM(network: base, dataset: combined)
#
# archive full history
# combined archive + realtime in one result
#
# Archive and combined need the historical data add-on:
# https://bitquery.io/pricing
#
# Datasets: https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#
# For more info on the endpoint visit -
# https://docs.bitquery.io/docs/blockchain/Base/
# For faster results try using indexed feilds in where and orderBy clause -
# https://docs.bitquery.io/docs/graphql/indexed-fields-reference/
{
EVM(network: base) {
TransactionBalances(
limit: { count: 1 }
orderBy: { descending: Block_Time }
where: {
TokenBalance: {
Currency: {
SmartContract: { is: "0x940181a94a35a4569e4529a3cdfb74e38fd98631" }
Fungible: true
}
}
}
) {
Block {
Time
Number
}
TokenBalance {
Currency {
Symbol
Name
SmartContract
Decimals
}
TotalSupply
Marketcap:TotalSupplyInUSD
}
}
}
}
Similar queries
- latest liquidity of a Base pool · Base · TransactionBalances
- Get All Token Balances for an Address · Base · TransactionBalances
- latest token supply of all active tokens on base chain · Base · TransactionBalances
- native WETH transfer not tracked · Base · TransactionBalances
- tx swap v2 uniswap · Base · TransactionBalances