bnb query example

Returns the latest 1000 DEX trades on BNB Chain, where transaction from is 0xC1a3…3d5c: block time, protocol name, protocol family, smart contract, buy amount, buy buyer, buy seller and 19 more fields.

By gaurav · saved 9 October 2025 · run 4 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: bsc, dataset: realtime) {
    DEXTrades(
      where: {
        any: [
          {Trade: {Buy: {Currency: {SmartContract: {is: "0x8b9ad5E415b78Aad213023E73f1677304Ea24444"}}}}}, 
          {Trade: {Sell: {Currency: {SmartContract: {is: "0x8b9ad5E415b78Aad213023E73f1677304Ea24444"}}}}}],
        Transaction: {From: {is: "0xC1a3F323B26aFF63BB18db0F61B49324e2583d5c"}}}
      limit: {count: 1000}
      orderBy: {descending: Block_Time}
    ) {
      Block {
        Time
      }
      Trade {
        Dex {
          ProtocolName
          ProtocolFamily
          SmartContract
        }
        Buy {
          Amount
          Buyer
          Seller
          Currency {
            Decimals
            Fungible
            HasURI
            Name
            ProtocolName
            SmartContract
            Symbol
          }
          OrderId
        }
        Sell {
          Buyer
          Seller
          Currency {
            Decimals
            Fungible
            HasURI
            Name
            ProtocolName
            SmartContract
            Symbol
          }
          AmountInUSD
          Amount
        }
      }
    }
  }
}

Similar queries