Example ETH2 query validator

Returns attestations on eth2, where date since 2021-10-10, validator index is 209861 and attestation epoch is 70363, sorted by date date: date date, count, epoch, slot and attestation signature.

By Aleksey · saved 11 October 2021 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query ($network: Ethereum2Network!, $dateFormat: String!, $index: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum2(network: $network) {
    attestations(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      validatorIndex: {is: $index}
      attestationEpoch: {is: 70363}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      count
      attestation{
        epoch
        slot
        source{
          epoch
        }
        target {
          epoch
        }
        signature
        slot
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "eth2",
  "index": 209861,
  "from": "2021-10-10",
  "till": null,
  "dateFormat": "%Y-%m-%d"
}

Similar queries