Trades of NFT Token with Address as Seller

Returns the latest 10 DEX trades on Ethereum, where buy seller is 0xbf7c…a3d9, 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 ids and 5 more fields.

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

Variables

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

Similar queries