hourly sync events [doesn't work]

Returns the latest 5 smart contract events on Ethereum and BNB Chain, where smart contract address is 0x76B0…1c4d, smart contract event is Sync and date since 2022-11-01: block height, iso8601, unixtime, hour, arguments value, arguments index, argument and 2 more fields.

By Volodymyr · saved 7 November 2022 · run 67 times · Bitquery API v1

What it returns

Filters

The query

query ($contract: String, $since: ISO8601DateTime, $limit: Int) {
  ethereum(network: bsc) {
    smartContractEvents(
      date: {since: $since}
      options: {
        desc: "block.timestamp.unixtime", limit: $limit
        limitBy: {each: "block.timestamp.hour", limit: 1}
      }
      smartContractEvent: {is: "Sync"}
      smartContractAddress: {is: $contract}
    ) {
      block {
        height
        timestamp {
          iso8601
          unixtime
          hour
        }
      }
      arguments {
        value
        index
        argument
        argumentType
      }
      date {
        date
      }
    }
  }
}

Variables

{
  "contract": "0x76B0d10A4540B6743aa086EA31DC48E8AB691c4d",
  "since": "2022-11-01",
  "limit": 5
}

Similar queries