Sample ETH2 query

Returns 10 proposer slashings and attestations on eth2, where date after 2023-02-08: proposer index, body root, epoch, attestation index and block height.

By Divyasshree N · saved 9 February 2023 · run 8 times · Bitquery API v1

What it returns

Filters

The query

query MyQuery {
  ethereum2(network: eth2) {
    proposerSlashings(options: {limit: 10}) {
      proposer {
        index
      }
      slashing {
        bodyRoot
        epoch
      }
    }
    attestations(options: {limit: 10}, date: {after: "2023-02-08"}) {
      attestationIndex
      block {
        height
      }
    }
  }
}

Similar queries