Trades of NFT Token with Address as Buyer

Returns the latest 10 DEX trades on Arbitrum, where buy buyer is 0xf977…acec, block date since 2021-09-12 and block date till 2023-09-19: chain ID, block time, transaction hash, smart contract, buy price, buy amount, buy buyer and 6 more fields.

By Nadia · saved 8 January 2024 · run 9 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $address: String, $from: String, $till: String) {
  EVM(dataset: combined, network: $network) {
    DEXTrades(
      orderBy: {descending: Block_Number}
      limit: {count: $limit}
      where: {Trade: {Buy: {Buyer: {is: $address}, Currency: {Fungible: true}}}, Block: {Date: {since: $from, till: $till}}}
    ) {
      ChainId
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Dex {
          SmartContract
        }
        Buy {
          Price
          Amount
          Buyer
          Seller
          Ids
          URIs
        }
        Sell {
          Amount
          Currency {
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}

Variables

{
  "network": "arbitrum",
  "limit": 10,
  "from": "2021-09-12",
  "till": "2023-09-19",
  "address": "0xf977814e90da44bfa03b6295a0616a897441acec"
}

Similar queries