strange_transaction

Returns DEX trades on Ethereum, where transaction from is 0x21c8…f92b: buy amount, buy amount in USD, buy smart contract, sell amount, sell amount in USD, sell smart contract, from and sender fee in USD.

By Et · saved 24 May 2024 · run 8 times · Bitquery API v2

What it returns

Filters

The query

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

Variables

{"address": "0x72a93697a5ac73cfEE39ff87298220f77c538611"}

Similar queries