monitor validator rewards
Streams transaction balances on Ethereum as they happen, where token balance address is $yourValidatorAddressHere and token balance balance change reason code is 2, 3 or 1 more: block time, block number, currency symbol, pre balance, post balance, token balance address, balance change reason code and 4 more fields.
What it returns
- block time
- block number
- currency symbol
- pre balance
- post balance
- token balance address
- balance change reason code
- pre balance in USD
- post balance in USD
- transaction hash
- calculate
Filters
- token balance address is $yourValidatorAddressHere
- token balance balance change reason code is 2, 3 or 1 more
The subscription
subscription {
EVM(network: eth) {
TransactionBalances(
where: {TokenBalance: {Address: {is: "$yourValidatorAddressHere"}, BalanceChangeReasonCode: {in: [2, 3, 5]}}}
) {
Block {
Time
Number
}
TokenBalance {
Currency {
Symbol
}
PreBalance
PostBalance
Address
BalanceChangeReasonCode
PreBalanceInUSD
PostBalanceInUSD
}
Transaction {
Hash
}
reward: calculate(
expression: "$TokenBalance_PostBalance - $TokenBalance_PreBalance"
)
reward_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