the Latest Trades of NFT Token

Returns the latest 10 DEX trades on Ethereum, where buy currency smart contract is 0xBC4C…f13D, 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 11 more fields.

By Nadia · saved 15 January 2024 · run 10 times · Bitquery API v2

What it returns

Filters

The query

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

Variables

{
  "network": "eth",
  "limit": 10,
  "token": "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D"
}

Similar queries