1inch v5 trades

Returns the latest DEX trades on Base, where transaction to is 0x1111…0582: block time, protocol name, protocol family, smart contract, pair name, buy amount, buy buyer and 20 more fields.

By Divyasshree · saved 3 December 2024 · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: base, dataset: realtime) {
    DEXTrades(
      where: {Transaction: {To: {is: "0x1111111254eeb25477b68fb85ed929f73a960582"}}}
      orderBy: {descending: Block_Time}
    ) {
      Block {
        Time
      }
      Trade {
        Dex {
          ProtocolName
          ProtocolFamily
          SmartContract
          Pair {
            Name
            SmartContract
          }
        }
        Buy {
          Amount
          Buyer
          Seller
          Currency {
            Decimals
            Fungible
            HasURI
            Name
            ProtocolName
            SmartContract
            Symbol
          }
          OrderId
        }
        Sell {
          Buyer
          Seller
          Currency {
            Decimals
            Fungible
            HasURI
            Name
            ProtocolName
            SmartContract
            Symbol
          }
        }
      }
      Transaction {
        From
        To
      }
    }
  }
}

Similar queries