Trades of NFT Token with Address as Buyer

Returns the latest 10 DEX trades on Ethereum, where buy buyer is 0xb273…a7d1, block date since 2023-05-02 and block date till 2023-05-09: chain ID, block time, transaction hash, smart contract, buy price, buy buyer, buy seller and 5 more fields.

By Nadia · saved 29 May 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, $address: 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: {
            Buyer: {is: $address}
            Currency: {Fungible: true}
          }
        }
      }
    ){
      ChainId
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Dex {
          SmartContract
        }
        Buy {
					Price
          Buyer
          Seller
          Ids
          URIs
        }
        Sell {
          
          Amount
          Currency {
            Symbol
            SmartContract
          }        
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "offset": 0,
  "from": "2023-05-02",
  "till": "2023-05-09",
  "address": "0xb273f2efdab32bdf5639b58a7993a096f054a7d1"
}

Similar queries