Balance Reporting using the PowerStaking SDK
The ETH balance of a validator can fluctuate over time. The balance increases if the validator successfully attests or proposes a block whereas the balance decreases due to slashing or being offline. The increase in balance needs to be reflected in the dETH balance of the user’s wallet. This is achieved with the help of the Deposit Router and Balance Reporter using the SDK. The Deposit Router takes care of all the requests generated to update the balance, verify the reports and generate a valid signature as a result.
PowerStaking's SDK allows validators to easily interact with the Beacon Chain and Deposit Router. The tasks a validator can perform include:
Fetching a report from the Beacon Chain.
Authenticating the finalized Beacon Chain report and generating a signature for the report.
Submitting the report (along with the signature) to the PowerStaking protocol smart contracts in order to get dETH associated with the inflation rewards.
The PowerStaking SDK supports Ethereum Mainnet and Goerli Testnet. This is a tutorial on Goeril Testnet. If you are interested to try this out on Ethereum Mainnet, you will have to change the network from
goerli
tomainnet
(homestead
).
Last updated