dextrade info using protocal filter

Returns the latest 5 DEX trades on Ethereum, where buy currency smart contract is 0xc02a…6cc2 and DEX protocol name is uniswap_v3: block number, block time, from, to, transaction hash, buy amount, buy buyer and 16 more fields.

By Vishal · saved 5 June 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: archive, network: eth) {
    buyside: DEXTrades(
      limit: {count: 5}
      orderBy: {descending: Block_Time}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}}, 
        Dex: {ProtocolName: {is: "uniswap_v3"}}}}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        From
        To
        Hash
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Seller
          Price
        }
        Dex {
          ProtocolFamily
          ProtocolName
         Pool_address: SmartContract
          
          Dex_Adress: OwnerAddress
        }
      }
    }
  }
}

Similar queries