Latest Trades of NFT T

Returns the latest 10 DEX trades on Ethereum, where buy currency smart contract is 0xae7a…fe84, 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 23 August 2023 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $offset: Int!, $token: String) {
  EVM(dataset: combined, network: $network) {
    DEXTrades(
      orderBy: {descending: Block_Number}
      limit: {offset: $offset, count: $limit}
      where: {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,
  "token": "0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
}

Similar queries