1

Ethereum enabled staking for anyone with a minimum of 32 ETH. Where can I see the code of their staking protocol? Is it a .sol file? Is it a contract address whose code is viewable on Etherscan? Please include link, would like to understand how staking is programmed.

1

The address can be obtained from different sites.

You can read the code from here.

There's a github repo https://github.com/ethereum/consensus-specs/tree/dev/solidity_deposit_contract.

8
  • Where do staking funds get "deposited" to exactly
    – user610620
    Nov 26 at 10:31
  • Besides the deposit function, which line of code does it explicate the reward/earnings of the staker (outflow for the contract rather than a deposit)?
    – user610620
    Nov 26 at 11:10
  • @user610620 The deposit contract doesn't handle rewards, they are part of the eth2.0 consensus rules.
    – Ismael
    Nov 26 at 19:02
  • If the rewards for staking aren't handled in this deposit contract, what contract does handle the rewards for staking?
    – user610620
    Nov 27 at 13:58
  • 1
    @user610620 Last year the beacon chain was launched, eventually it will be ETH 2.0. The consensus rules are in this repo: github.com/ethereum/consensus-specs.
    – Ismael
    Nov 27 at 20:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.