liquidity of a pool - EVM - query

Returns the latest DEX pool event on Ethereum, where pool smart contract is 0x1ae7…ab7d: block time, block number, ato b price, bto a price, smart contract, protocol name, amount currency a and 10 more fields.

By Akshat · saved 12 March 2026 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query PoolLiquidityEVM($network: evm_network, $poolAddress: String!) {
  EVM(network: $network) {
    DEXPoolEvents(
      limit: {count: 1}
      orderBy: {descending: Block_Time}
      where: {PoolEvent: {Pool: {SmartContract: {is: $poolAddress}}}}
    ) {
      Block {
        Time
        Number
      }
      PoolEvent {
        AtoBPrice
        BtoAPrice
        Dex {
          SmartContract
          ProtocolName
        }
        Liquidity {
          AmountCurrencyA
          AmountCurrencyAInUSD
          AmountCurrencyB
          AmountCurrencyBInUSD
        }
        Pool {
          CurrencyA {
            Name
            SmartContract
            Symbol
          }
          CurrencyB {
            Name
            SmartContract
            Symbol
          }
          PoolId
          SmartContract
        }
      }
      Transaction {
        Gas
        Hash
      }
    }
  }
}

Variables

{
  "network": "eth",
  "poolAddress": "0x1ae71aadbeb70c0a8c297fd99075e5b71865ab7d"
}

Similar queries