check

Returns the latest 10 DEX trades on BNB Chain, where transaction to is 0x84A5…970e or 0xc64c…8d31, transaction from is 0x6A21…41e3 or 0xa867…d8ef and block date since 2023-06-27: block number, block time, transaction hash, gas price, from, to, buy amount and 6 more fields.

By Omkar_BQ · saved 31 July 2023 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: bsc) {
    TO: DEXTrades(
      limit:{count:10}
      orderBy: {descending: Block_Time}
      where: {Block: {Date: {since: "2023-06-27"}}, Transaction: {To: {in: ["0x84A52105591FDdE1e3aAe82cA73c4dd9d7Ec970e","0xc64c52ce5c167439769825c9891862accf5e8d31"]}}}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        Hash
        GasPrice
        From
        To
      }
      Trade {
        Buy {
          Amount
          Currency {
            SmartContract
            Symbol
          }
        }
        Sell {
          Amount
          Currency {
            SmartContract
            Symbol
          }
        }
      }
    }
    FORM: DEXTrades(
      limit:{count:10}
      orderBy: {descending: Block_Time}
      where: {Block: {Date: {since: "2023-06-27"}}, Transaction: {From: {in: ["0x6A21643D07Dc2bDaAb126DA1Ee2A9171C5A141e3","0xa8671b4a7d7933ebf252344f67289f629339d8ef"]}}}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        Hash
        GasPrice
        From
        To
        Type
      }
      Trade {
        Buy {
          Amount
          Currency {
            SmartContract
            Symbol
          }
        }
        Sell {
          Amount
          Currency {
            SmartContract
            Symbol
          }
        }
      }
    }
  }
}

Variables

{

}

Similar queries