Useful Ethereum2 Queries

Eth2 Validator’s Balance

https://graphql.bitquery.io/ide/validators-balance

{
  ethereum2 {
    validatorUpdates(validatorIndex: {is: 492976}) {
      validatorBalance
      validatorEffectiveBalance
    }
  }
}

Eth2 Validator’s income

https://graphql.bitquery.io/ide/validators-income

{
  ethereum2 {
    validatorUpdates(validatorIndex: {is: 492976}) {
     validatorBalanceChange
      validatorBalance
      validatorEffectiveBalance
      date{
        date
      }
    }
  }
}

Validator’s income per epoch

{
  ethereum2 {
    validatorUpdates(validatorIndex: {is: 492976}, options: {desc: "epoch"}) {
      epoch
      validatorBalanceChange
      validatorBalance
      validatorSlashed
      validatorEffectiveBalance
      validatorStatus
    }
  }
}

Unique ETH2 Validaors

{
  ethereum2 {
    validatorUpdates {
      validators: count(uniq: validators)
      proposers: count(uniq: proposers)
      epochs: count(uniq: epochs)
      blocks: count(uniq: blocks)
    }
  }
}

To learn more, read our blog on ETH2 API, also explore our ETH2 data on our Explorer.

1 Like