Skip to main content

Ethereum MEV Balance Tracker

The Ethereum MEV (Maximal Extractable Value) Balance Tracker API provides real-time balance updates related to MEV activities, including transaction fee rewards, block builder rewards, and other MEV-related balance changes.

Track MEV-Boost Relay Transaction Balances

Track balance changes for MEV-boost relay addresses to monitor their activity and rewards. This example uses the BloXroute Max Profit address.

Run query

{
EVM(network: eth) {
TransactionBalances(
where: {
TokenBalance: {
Address: { is: "0xF2f5C73fa04406b1995e397B55c24aB1f3eA726C" }
}
}
limit: { count: 10 }
orderBy: { descending: Block_Time }
) {
Block {
Time
Number
}
TokenBalance {
Currency {
Symbol
}
PreBalance
PostBalance
PreBalanceInUSD
PostBalanceInUSD
Address
BalanceChangeReasonCode
}
Transaction {
Hash
From
To
Value
ValueInUSD
GasPrice
Index
}
}
}
}

Monitor balance changes related to MEV activities, including transaction fee rewards and block builder rewards. Try the API here.

subscription {
EVM(network: eth) {
TransactionBalances(
where: { TokenBalance: { BalanceChangeReasonCode: { eq: 5 } } }
) {
Block {
Time
Number
}
TokenBalance {
Currency {
Symbol
}
PreBalance
PostBalance
Address
BalanceChangeReasonCode
PostBalanceInUSD
}
Transaction {
Hash
}
}
}
}

Balance Change Reason Code for MEV:

  • Code 5: BalanceIncreaseRewardTransactionFee - Transaction tip increasing block builder's balance (MEV-related)

Track MEV Payout Transaction Balances with MEV Reward

This query focuses on a block builder address and returns the most recent payouts, including the token metadata, pre/post balances, and USD valuations, so you can quickly see how large each MEV reward was.

Try the API

{
EVM(network: eth) {
TransactionBalances(
limit: {count: 10}
where: {Transaction: {}, TokenBalance: {BalanceChangeReasonCode: {eq: 6}, Address: {is: "0x396343362be2a4da1ce0c1c210945346fb82aa49"}}}
orderBy: {descending: Block_Time}
) {
Block {
Time
}
TokenBalance {
Currency {
Symbol
HasURI
SmartContract
}
PreBalance
PostBalance
Address
BalanceChangeReasonCode
TotalSupplyInUSD
TotalSupply
TokenOwnership {
Owns
Id
}
PostBalanceInUSD
}
Transaction {
Hash
MEV_reward: Value
ValueInUSD
}
}
}
}

Track Block Builder Rewards

Monitor transaction fee rewards received by block builders (MEV extractors): Try the API here.

subscription {
EVM(network: eth) {
TransactionBalances(
where: {
TokenBalance: { BalanceChangeReasonCode: { eq: 5 } }
Block: { Number: { gt: "0" } }
}
) {
Block {
Time
Number
}
TokenBalance {
Currency {
Symbol
}
PreBalance
PostBalance
Address
BalanceChangeReasonCode
PostBalanceInUSD
}
Transaction {
Hash
GasPrice
}
}
}
}

Filter by MEV Bot or Builder Address

Track balance changes for specific MEV bots or block builders: Try the API here.

subscription {
EVM(network: eth) {
TransactionBalances(
where: {
TokenBalance: {
Address: { is: "0xMEVBotOrBuilderAddressHere" }
BalanceChangeReasonCode: { eq: 5 }
}
}
) {
Block {
Time
Number
}
TokenBalance {
Currency {
Symbol
}
PreBalance
PostBalance
Address
BalanceChangeReasonCode
PostBalanceInUSD
}
Transaction {
Hash

GasPrice
}
}
}
}

Track Large MEV Transactions

Monitor large transaction fee rewards that may indicate significant MEV extraction: Try the API here.

subscription {
EVM(network: eth) {
TransactionBalances(
where: {
TokenBalance: {
BalanceChangeReasonCode: { eq: 5 }
PostBalanceInUSD: { gt: "1000" }
}
}
) {
Block {
Time
Number
}
TokenBalance {
Currency {
Symbol
}
PreBalance
PostBalance
Address
BalanceChangeReasonCode
PostBalanceInUSD
}
Transaction {
Hash

GasPrice
}
}
}
}

Aggregate MEV Rewards

Calculate total MEV rewards for a specific address or time period: Try the API here.

{
EVM(dataset: archive, network: eth) {
TransactionBalances(
where: {
TokenBalance: {
Address: { is: "0xMEVBotOrBuilderAddressHere" }
BalanceChangeReasonCode: { eq: 5 }
}
}
) {
TokenBalance {
Currency {
Symbol
}
totalRewards: sum(of: TokenBalance_PostBalanceInUSD)
totalRewardsETH: sum(of: TokenBalance_PostBalance)
rewardCount: count
}
}
}
}