base_trade_txn

Returns DEX trades on Base, where DEX smart contract is 0x88a4…bb9c and transaction hash is 0xf613…dbe8: buy price in USD, buy amount in USD, buy smart contract, buy currency name, buy amount, sell price in USD, sell amount and 4 more fields.

By Omkar_BQ · saved 14 February 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(network: base, dataset: combined) {
    DEXTrades(
      where: {Trade: {Dex: {SmartContract: {is: "0x88a43bbdf9d098eec7bceda4e2494615dfd9bb9c"}}}, Transaction: {Hash: {is: "0xf61383ccd7bf7877f654aef611396e8516de0b5a3145ef750f3681fbdd20dbe8"}}}
    ) {
      Trade {
        Buy {
          PriceInUSD
          AmountInUSD
          Currency {
            SmartContract
            Name
          }
          Amount
        }
        Sell {
          PriceInUSD
          Amount
          AmountInUSD
          Currency {
            Name
            SmartContract
          }
        }
      }
      Transaction {
        Hash
      }
    }
  }
}

Similar queries