get_bot_dexTrades

Returns the latest 5 DEX trades and calls on BNB Chain, where block number is above 46203767: transaction hash, sender fee, block number, block time, protocol version, protocol name, buy seller and 9 more fields.

By akbar007 · saved 31 January 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: bsc, dataset: archive) {
    DEXTrades(
      where: {Block: {Number: {gt: "46203767"}}, any: [{Transaction: {From: {is: "0x89Cf86b9635a52e89a669c40785E7Bdff79C82F1"}}}]}
      orderBy: {descending: Block_Number}
      limit: {count: 5}
    ) {
      Transaction {
        Hash
      }
      Fee {
        SenderFee
      }
      Block {
        Number
        Time
      }
      Trade {
        Dex {
          ProtocolVersion
          ProtocolName
        }
        Buy {
          Seller
          Buyer
          Amount
          Currency {
            Symbol
            SmartContract
          }
        }
        Sell {
          Seller
          Buyer
          Amount
          Currency {
            Symbol
            SmartContract
          }
        }
      }
    }
    Calls
  }
}

Similar queries