first 50 bsc

Returns 50 DEX trades on BNB Chain, where buy currency smart contract is 0xdc11…4444 and sell currency smart contract is 0xbb4C…095c, sorted by block time: block number, block time, transaction hash, buy buyer, buy currency symbol, buy smart contract, buy amount and 7 more fields.

By Aleks M · saved 16 October 2025 · run 21 times · Bitquery API v2

What it returns

Filters

The query

query FirstBuyersAndSpendUSD(
  $token: String!,
  $limit: Int = 50,
  $usdExpr: String!
){
  EVM(dataset: archive, network: bsc){
    first_buyers: DEXTrades(
      where:{
        Trade:{
          Buy:  { Currency: { SmartContract: { is: $token } } }
          Sell: { Currency: { SmartContract: { is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c" } } }
        }
      }
      orderBy:{ ascendingByField: "Block_Time" }
      limitBy:{ by: Trade_Buy_Buyer, count: 1 }
      limit:{ count: $limit }
    ){
      Block { Number Time }
      Transaction { Hash }
      Trade {
        Buy {
          Buyer
          Currency { Symbol SmartContract }
          Amount
          Price
        }
        Sell {
          Currency { Symbol SmartContract }
          Amount
          Price
        }
      }
      bnb_spent: sum(of: Trade_Sell_Amount)
      usd_spent: calculate(expression: $usdExpr)
    }
  }
}

Variables

{
  "token": "0xdc11726c4efa126cfe9614408cd310b22fe74444",
  "limit": 50,
  "usdExpr": "$bnb_spent * 1187.25"
}

Similar queries