Monitor balance after unused gas fee returned for an address--stream
Streams the latest transaction balance on Ethereum as they happen, where token balance address is 0x18bb…b290 and token balance balance change reason code is 7: block time, pre balance, pre balance in USD, post balance, post balance in USD and calculate.
What it returns
- block time
- pre balance
- pre balance in USD
- post balance
- post balance in USD
- calculate
Filters
- token balance address is 0x18bb…b290
- token balance balance change reason code is 7
The subscription
subscription {
EVM(network: eth) {
TransactionBalances(
where: {TokenBalance: {BalanceChangeReasonCode: {eq: 7}, Address: {is: "0x18bb896994283bd9c16aa2072777a97c12f1b290"}}}
limit: {count: 1}
orderBy: {descending: Block_Time}
) {
Block{
Time
}
TokenBalance {
PreBalance
PreBalanceInUSD
PostBalance
PostBalanceInUSD
}
fee_paid: calculate(
expression: "$TokenBalance_PostBalance - $TokenBalance_PreBalance"
)
fee_paid_usd: calculate(
expression: "$TokenBalance_PostBalanceInUSD - $TokenBalance_PreBalanceInUSD"
)
}
}
}
Similar queries
- get latest balance of a pool and it's tokens · Ethereum · TransactionBalances
- balance of address stream · Ethereum · TransactionBalances
- Watch MEV Rewards to Builders · Ethereum · TransactionBalances
- All Self-Destruct Event Balances Stream · Ethereum · TransactionBalances
- token balance stream on EVM · Ethereum · TransactionBalances