Ethereum Token Balance API
The Ethereum Token Balance API provides real-time balance updates for ERC-20 fungible tokens on the Ethereum blockchain. Track token balances, total supply, market capitalization, and USD values for any address holding ERC-20 tokens.
note
For ERC-20 tokens, the following fields are available:
- Available:
PostBalance,PostBalanceInUSD,TotalSupply,TotalSupplyInUSD - Not Provided:
PreBalance,BalanceChangeReasonCode,TokenOwnership
Get Latest Token Balance for an Address
Get the latest balance of a specific ERC-20 token for a given address. This query returns the current token balance, USD value, and token information. Try the API here.
{
EVM(network: eth) {
TransactionBalances(
limit: { count: 1 }
orderBy: { descending: Block_Time }
where: {
TokenBalance: {
Address: { is: "0x9642b23Ed1E01Df1092B92641051881a322F5D4E" }
Currency: {
SmartContract: { is: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" }
Fungible: true
}
}
}
) {
Block {
Time
Number
}
TokenBalance {
Currency {
Symbol
Name
SmartContract
Decimals
}
PostBalance
PostBalanceInUSD
Address
TotalSupply
TotalSupplyInUSD
}
Transaction {
Hash
}
}
}
}
Stream Token Balance Updates in Real Time
Subscribe to real-time token balance updates for a specific address and token. This subscription will notify you whenever the token balance changes. Try the API here.
subscription {
EVM(network: eth) {
TransactionBalances(
where: {
TokenBalance: {
Address: { is: "0x9642b23Ed1E01Df1092B92641051881a322F5D4E" }
Currency: {
SmartContract: { is: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" }
Fungible: true
}
}
}
) {
Block {
Time
Number
}
TokenBalance {
Currency {
Symbol
Name
SmartContract
Decimals
}
PostBalance
PostBalanceInUSD
Address
TotalSupply
TotalSupplyInUSD
}
Transaction {
Hash
From
To
}
}
}
}