Node Operator Registry
Getting Node Operator Info
NodeOperatorRegistry.getOperator(uint256 id) → Operator
NodeOperatorRegistry.getOperator(uint256 id) → Operator
Getter for the operator record of the given id
.
NodeOperatorRegistry.getOperators() → Operator[]
NodeOperatorRegistry.getOperators() → Operator[]
Getter for an array of all existing operators’ records.
NodeOperatorRegistry.getRewardAddress(uint256 id) → address
NodeOperatorRegistry.getRewardAddress(uint256 id) → address
Getter for the reward address of the given id
.
NodeOperatorRegistry.getRewardAddresses() → address[]
NodeOperatorRegistry.getRewardAddresses() → address[]
Getter for an array of all existing reward addresses.
NodeOperatorRegistry.getWithdrawalAddress(uint256 id) → address
NodeOperatorRegistry.getWithdrawalAddress(uint256 id) → address
Getter for the withdrawal manager address of the given id
.
NodeOperatorRegistry.getWithdrawalAddresses() → address[]
NodeOperatorRegistry.getWithdrawalAddresses() → address[]
Getter for an array of all existing withdrawal managers’ addresses.
NodeOperatorRegistry.getWithdrawalCredential(uint256 id) → bytes32
NodeOperatorRegistry.getWithdrawalCredential(uint256 id) → bytes32
Getter for the withdrawal credential of the given id
. Unlike the withdrawal address, withdrawal credential is a piece of bytes32
data including the withdrawal prefix (currently all Tranchess operators adopt ETH1_ADDRESS_WITHDRAWAL_PREFIX
) and the withdrawal manager address.
NodeOperatorRegistry.getKeyStat(uint256 id) → KeyStat
NodeOperatorRegistry.getKeyStat(uint256 id) → KeyStat
Getter for the validator key status of the given id
.
NodeOperatorRegistry.getKeyStats() → KeyStat[]
NodeOperatorRegistry.getKeyStats() → KeyStat[]
Getter for an array of all existing validator key status.
Getting Validator Key Info
NodeOperatorRegistry.getKey(uint256 id, uint256 index) → Key
NodeOperatorRegistry.getKey(uint256 id, uint256 index) → Key
Getter for the validator key struct of the given id
and index
.
NodeOperatorRegistry.getKeys(uint256 id, uint256 start, uint256 count) → Key[]
NodeOperatorRegistry.getKeys(uint256 id, uint256 start, uint256 count) → Key[]
Batch getter for the validator key struct of the given id
and the range starting at start
spanning count
length.
NodeOperatorRegistry.getPubkeys(uint256 id, uint256 start, uint256 count) → bytes[]
NodeOperatorRegistry.getPubkeys(uint256 id, uint256 start, uint256 count) → bytes[]
Batch getter for the reconstructed validator keys of the given id
and the range starting at start
spanning count
length.
NodeOperatorRegistry.getSignatures(uint256 id, uint256 start, uint256 count) → bytes[]
NodeOperatorRegistry.getSignatures(uint256 id, uint256 start, uint256 count) → bytes[]
Batch getter for the reconstructed validator signatures of the given id
and the range starting at start
spanning count
length.
Operating nodes
NodeOperatorRegistry.addKeys(uint256 id, bytes calldata pubkeys, bytes calldata signatures)
NodeOperatorRegistry.addKeys(uint256 id, bytes calldata pubkeys, bytes calldata signatures)
Batch add validator keys for id
. pubkeys
and signatures
are the concatenated public keys and signatures without padding. Id
node operator’s owner only.
NodeOperatorRegistry.truncateUnusedKeys(uint256 id)
NodeOperatorRegistry.truncateUnusedKeys(uint256 id)
Truncate all unused validator keys previously submitted for id
. Id
node operator’s owner only.
NodeOperatorRegistry.updateRewardAddress(uint256 id, address newRewardAddress)
NodeOperatorRegistry.updateRewardAddress(uint256 id, address newRewardAddress)
Update the operator.rewardAddress
to newRewardAddress
for id
. By default, the reward address is the same as operator.operatorOwner
. Id
node operator’s owner only.
NodeOperatorRegistry.updateDepositLimit(uint256 id, uint64 newDepositLimit)
NodeOperatorRegistry.updateDepositLimit(uint256 id, uint64 newDepositLimit)
Update the operator.depositLimit
to newDepositLimit
for id
, which is the new maximal number of active validators the operator could get assigned. We recommend it to be the current total number of validator keys, but it could go beyond the current validator key total number. Id
node operator’s owner only.
Last updated