check_trades_in_txn

Returns DEX trades on BNB Chain, where transaction hash is 0xa4be…81cb: buy amount, buy buyer, buy currency name, buy protocol name, buy price, buy seller, sell amount and 2 more fields.

By Omkar_BQ · saved 1 March 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: bsc) {
    DEXTrades(
      where: {Transaction: {Hash: {is: "0xa4be123c967bf26440baa4dd345d93f82aca8424c5712a1e357d92ae069c81cb"}}}
    ) {
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            ProtocolName
          }
          Price
          Seller
        }
        Sell {
          Amount
          Currency {
            Name
            Symbol
          }
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "baseCurrency": "0xdac17f958d2ee523a2206206994597c13d831ec7",
  "quoteCurrency": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
  "limit": "2000",
  "interval": "15"
}

Similar queries