optimized query 101

Returns the latest argument on Ethereum and BNB Chain, where smart contract address is 0x2cd7…1bfa, smart contract event is Burn or Mint and date after 2022-04-01: block height, unixtime, timestamp time, transaction hash, any of argument value, date date, base currency address and 6 more fields.

By gaurav · saved 6 April 2022 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    arguments(
      options: {desc: "date.date", limit: 20}
      smartContractAddress: {is: "0x2cd7ca738e568589bc1c0875c0d6dec867f41bfa"}
      smartContractEvent: {in: ["Burn", "Mint"]}
      date: {after: "2022-04-01", before: "2022-04-07"}
    ) {
      block {
        height
        timestamp {
          unixtime
          time
        }
      }
      transaction {
        hash
      }
      sender: any(of: argument_value, argument: {is: "sender"})
      amount0: any(of: argument_value, argument: {is: "amount0"})
      amount1: any(of: argument_value, argument: {is: "amount1"})
      to: any(of: argument_value, argument: {is: "to"})
      date {
        date
      }
    }
    dexTrades(
      smartContractAddress: {is: "0x2cd7ca738e568589bc1c0875c0d6dec867f41bfa"}
      options: {limit: 1}
      date: {after: "2022-04-03"}
    ) {
      baseCurrency {
        address
        decimals
        name
        symbol
      }
      quoteCurrency {
        address
        decimals
        name
        symbol
      }
    }
  }
}

Similar queries