balance-update-from-transfer-for-an-address--stream-base
Streams transaction balances on Base as they happen, where token balance address is 0x8335…2913 and token balance balance change reason code is 10: block time, post balance, post balance in USD, pre balance, pre balance in USD, calculate, from and to.
What it returns
- block time
- post balance
- post balance in USD
- pre balance
- pre balance in USD
- calculate
- from
- to
Filters
- token balance address is 0x8335…2913
- token balance balance change reason code is 10
The subscription
subscription {
EVM(network: base) {
TransactionBalances(
where: {TokenBalance: {BalanceChangeReasonCode: {eq: 10}, Address: {is: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"}}}
) {
Block {
Time
}
TokenBalance {
PostBalance
PostBalanceInUSD
PreBalance
PreBalanceInUSD
}
amt: calculate(
expression: "$TokenBalance_PostBalance - $TokenBalance_PreBalance"
)
amt_usd: calculate(
expression: "$TokenBalance_PostBalanceInUSD - $TokenBalance_PreBalanceInUSD"
)
Transaction {
From
To
}
}
}
}
Similar queries
- Subscribe to All Transaction Balances for USDC · Base · TransactionBalances
- token supply stream on base · Base · TransactionBalances
- BSC- BASECOIN / WETH on Base / Uniswap tx Balance · Base · TransactionBalances
- All Self-Destruct Event Balances Stream base · Base · TransactionBalances
- token balance stream on base · Base · TransactionBalances