Fetch ERC721/ERC1155 Sales Data

Fetching the ERC721/ERC1155 sales data for the specified contract address

Returns DEX trades, where buy currency smart contract is 0xED5A…C544: buy amount in USD, buy ids, buy price in USD, buy price, sell amount in USD, sell buyer, sell ids and 4 more fields.

By Harish · saved 11 November 2024 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined) {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xED5AF388653567Af2F388E6224dC7C4b3241C544"}}}}}
    ) {
      Trade {
        Buy {
          AmountInUSD
          Ids
          PriceInUSD
          Price
        }
        Sell {
          AmountInUSD
          Buyer
          Ids
          Price
          PriceInUSD
        }
        Dex {
          SmartContract
        }
      }
      Receipt {
        ContractAddress
      }
    }
  }
}

Similar queries