Skip to content

Validator Queries

The following queries can be performed using the scripts in the tools directory.

List the validator account pubkeys and their on-chain indices.

Usage:
validator_accounts_list.sh
Terminal window
cd ethereum-node
./tools/validator_accounts_list.sh
(keymanager kind) local wallet
Showing 3 validator accounts
View the eth1 deposit transaction data for your accounts by running `validator accounts list --show-deposit-data`
Account 0 | handicap-beagle-hunter
[validating public key] 0xa5ec42c0084d979fa1a6e1159cf63d6a387ed86cc24e896d17c6b6a35eacb2f5c04400b7dbff10bd377195c8a2fd9ab6
Account 1 | whisker-kayak-peanuts
[validating public key] 0xaff4bd663af39ea32969d8597f43b512474fd64e19fc9219223c1e729cf4e00f3b5ee4e4062ae6e516a975eae7a60edd
Account 2 | usually-much-kingbreak
[validating public key] 0xb6df8dc0c4c8b7513434a572c256003f91a641bff054086f7378990df985599defbbed432087fcb71f303bf728638fd9
Validator indices:
0xa5ec42c0: 1119809
0xaff4bd66: 1119810
0xb6df8dc0: 1119811

Estimate the next/previous automatic withdrawal “sweeps” of any validator. Any validator index or pubkey can be used, even if it is not yet a 0x01 type validator. As such, it is useful when timing validator conversions.

Usage:
estimate-withdrawal-sweep.sh [options] validator1 [validator2 ...]
Options:
--no-banner Do not show banner
--help, -h Show this message
Terminal window
cd ethereum-node
./tools/estimate-withdrawal-sweep.sh 93587 329469
Target validator: 93587
Approx. time since last withdrawal: -21:35:39
Approx. time until next withdrawal: 23:15:26
Target validator: 329469
Approx. time since last withdrawal: -21:35:38
Approx. time until next withdrawal: 23:15:27

Calculate the expected average block proposal frequency.

Usage:
estimate-bp-frequency.sh [options] validator1 [validator2 ...]
Options:
--no-banner Do not show banner
--help, -h Show this message
Terminal window
cd ethereum-node
./tools/estimate-bp-frequency.sh 329469 1150854
Validator: 329469
Average time between block proposals: 174.2 days
Validator: 1150854
Average time between block proposals: 2.7 days