Latest Trades of NFT Token

Returns the latest 10 DEX trades on Ethereum, where buy currency smart contract is 0x9635…e2ee, buy currency smart contract is not 0x and buy seller is not 0x: chain ID, block time, transaction hash, protocol family, protocol name, protocol version, smart contract and 8 more fields.

By Nadia · saved 11 August 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $offset: Int!, $from: String, $till: String, $token: String) {
  EVM(dataset: combined, network: $network) {
    DEXTrades(
      orderBy: {descending: Block_Number}
      limit: {offset: $offset, count: $limit}
      where: {Block: {Date: {since: $from, till: $till}}, Trade: {Buy: {Currency: {SmartContract: {is: $token, not: "0x"}}, Seller: {not: "0x"}}, Sell: {Currency: {SmartContract: {not: "0x"}}}}}
    ) {
      ChainId
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Dex {
          ProtocolFamily
          ProtocolName
          ProtocolVersion
          SmartContract
        }
        Buy {
          Price
          Buyer
          Seller
          Currency {
            Symbol
            SmartContract
          }
        }
        Sell {
          Amount
          Currency {
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "offset": 0,
  "from": "2023-08-02",
  "till": "2023-08-11",
  "token": "0x963590fabdc1333d03bc3af42a6b2ab33e21e2ee"
}

Similar queries