The holder of the withdrawal credential, set during the initial deposit, can trigger partial or complete withdrawal ofDocumentation Index
Fetch the complete documentation index at: https://berachain-422fce37-feat-nodes-section-reno.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
$BERA stake from a Validator. This process is demonstrated in the Docker Devnet’s final steps.
Requirements
- A fully-synced full node
- Foundry v1.0.0 or greater
- Validator Withdrawal Credential Address Private Key or Ledger
Withdrawal rules and process
Withdrawals occur at the end of the 256th epoch (~27 hours) after the epoch in which you perform the withdrawal. Every withdrawal requires a fee, which will increase if the withdrawal service experiences an unusual volume of requests. The withdrawal transaction must originate from the Withdrawal Credential Address for the validator to perform a withdrawal. The withdrawal API will silently adjust the withdrawal amount to maintain a minimum stake of 250,000$BERA. For instance, a validator with 350,000 $BERA staked that requests a withdrawal of 300,000 $BERA will only withdraw 100,000 $BERA.
To exit your validator from the Active Set and return the entire stake, use the special withdrawal amount of 0. Then, as described in the lifecycle overview, your validator will immediately be queued to exit the active set and no longer produce blocks. The stake will be returned by the consensus layer on the above schedule.
How to withdraw $BERA stake
The following walks you through how to withdraw a portion of a validator’s$BERA stake with the validator withdrawal credentials on Berachain Bepolia.
Step 1 - Configurations
Set up your environment. You will need the private key of your Withdrawal Credential Address, or to have it on an attached ledger. To obtain your CometBFT public key, you can invokebeacond --home path/to/beacond/data deposit validator-keys.
0 to withdraw the Validator’s entire stake.
Step 2 - Determine withdrawal fee
In addition to the desired amount to withdraw, a withdrawal fee must be sent with the transaction.Step 3 - Create withdrawal request
Package the desired withdrawal amount with the Validator’s identity as an encoded request.Step 4 - Send withdrawal request
Send the withdrawal request to the contract, from the Validator’s Withdraw Credential Address.--ledger for the --private-key if your key is kept on a hardware module.