base query

Returns DEX trades on Base, where transaction from is 0x6106…045c: buy amount, buy amount in USD, buy smart contract, buy seller, buy buyer, sell amount, sell amount in USD and 6 more fields.

By gaurav · saved 10 June 2024 · run 18 times · Bitquery API v2

What it returns

Filters

The query

query ($address: String!) {
  EVM(network: base, dataset: combined) {
    DEXTrades(
      where: {TransactionStatus: {Success: true}, any: [{Trade: {Buy: {Currency: {SmartContract: {is: $address}}}}}, {Trade: {Sell: {Currency: {SmartContract: {is: $address}}}}}], Transaction: {From: {is: "0x6106e8cab7de75cced3cb4dbaf2c0da396fd045c"}}}
      limit: {offset: 0}
    ) {
      Trade {
        Buy {
          Amount
          AmountInUSD
          Currency {
            SmartContract
          }
          Seller
          Buyer
        }
        Sell {
          Amount
          AmountInUSD
          Currency {
            SmartContract
          }
          Buyer
          Seller
        }
      }
      Transaction {
        From
        Hash
      }
      Fee {
        SenderFeeInUSD
      }
    }
  }
}

Variables

{
  "address": "0xba0Dda8762C24dA9487f5FA026a9B64b695A07Ea"
}

Similar queries