spectre/weth - sell - tx

Returns the latest 10 DEX trades on Ethereum, where sell currency smart contract is 0x9Cf0…dAd6 and transaction hash is 0xaed5…5ea1: block time, transaction hash, buy amount, buy buyer, buy currency name, buy seller, buy price and 5 more fields.

By Divyasshree N · saved 30 December 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $baseCurrency: String!) {
  EVM(network: $network, dataset: combined) {
    DEXTrades(
      limit: {count: $limit}
      orderBy: {descending: Block_Time}
      where: {Trade: {Sell: {Currency: {SmartContract: {is: $baseCurrency}}}}, Transaction: {Hash: {is: "0xaed5950ae962893b98c314b65e70df7c59d7d44291583f29941d88e023e85ea1"}}}
    ) {
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
          }
          Seller
          Price
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
          }
          Seller
          Price
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "baseCurrency": "0x9Cf0ED013e67DB12cA3AF8e7506fE401aA14dAd6"
}

Similar queries