Sub updates balance for usdc example
Streams balance updates on Ethereum as they happen, where currency smart contract is 0xa0b8…eb48 and balance update address is not 0x: block number, block time, balance update amount, balance update type, currency symbol, currency name and smart contract.
What it returns
- block number
- block time
- balance update amount
- balance update type
- currency symbol
- currency name
- smart contract
Filters
- currency smart contract is 0xa0b8…eb48
- balance update address is not 0x
The subscription
subscription ($network: evm_network, $token: String!) {
EVM(network: $network) {
BalanceUpdates(
where: {
BalanceUpdate: {Address: {not: "0x"}}
Currency: {SmartContract: {is: $token}}
}
) {
Block {
Number
Time
}
BalanceUpdate {
Amount
Type
}
Currency {
Symbol
Name
SmartContract
}
}
}
}
Variables
{"network":"eth","token":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}
Similar queries
- whale balance update tracking · Ethereum · BalanceUpdates
- usdt balance history subscription api template · Ethereum · BalanceUpdates
- Mempool balance updates on Ethereum, Arbitrum, BNB subscription · Ethereum · BalanceUpdates
- Mempool balance updates on Ethereum, Arbitrum, BNB · Ethereum · BalanceUpdates
- Price Alert · Ethereum · BalanceUpdates