Latest NFT Trades

Returns the latest 10 DEX trades on Ethereum, where buy currency smart contract is 0x0fcb…4170: block time, transaction hash, protocol family, protocol name, protocol version, smart contract, buy price and 7 more fields.

By gaurav · saved 23 May 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $token: String) {
  EVM(network: $network, dataset: archive) {
    DEXTrades(
      limit: {count: 10}
      orderBy: {descending: Block_Number}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: $token}}}}}
    ) {
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Dex {
          ProtocolFamily
          ProtocolName
          ProtocolVersion
          SmartContract
        }
        Buy {
          Price
          Buyer
          Ids
          URIs
        }
        Sell {
          Seller
          Amount
          Currency {
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "token": "0x0fcbd68251819928c8f6d182fc04be733fa94170"
}

Similar queries