Exit & Validator Withdrawal

In this guide, you'll learn how to exit and withdraw your validator using the Stakefish API.

🚧

Important

This exit process is intended exclusively for Enterprise staking. The API keys discussed in this guide cannot be shared with third parties, particularly via web-based interfaces.

If you are using Retail staking you should check Customer Exit & Validator Withdrawal.

Exit Validator

To initiate the exit of a validator, use the following API request:

curl -X POST "https://api.testnet.stake.fish/v1/eth/stake/v1/exit-validators-admin" \
    -H "Content-Type: application/json" \
    -H "Authorization: YOUR_SECURE_API_KEY" \
    --data '{
        "indices": [
          INDICE_1,
          INDICE_2,
          INDICE_n
        ]
    }'

Explanation of Fields:

  • INDICE_*: An array of validator indices you want to exit. Validators must be active for at least two days before they can be exited.

Example Response:

After sending the POST request, you’ll receive a response similar to the following:

[
  {
    "pubkey": "0x11111111111111111111111111111111111111111111111111111111111111111111111111111111",
    "validatorIndex": "10487",
    "successful": true
  },
  {
    "pubkey": "0x22222222222222222222222222222222222222222222222222222222222222222222222222222222",
    "validatorIndex": "20250",
    "successful": true
  },
  {
    "pubkey": "0x33333333333333333333333333333333333333333333333333333333333333333333333333333333",
    "validatorIndex": "50423",
    "successful": false,
    "reason": "Validator #50423 is already exiting"
  }
  
]

Your validators will begin the exit process. This typically takes 3 to 5 days.

Validator Withdrawal

Validator withdrawals are fully automated. Once your validator has exited, the staked funds will be returned to your wallet (withdrawal credentials) within 1 to 3 days.

If you want to check your withdrawal progress, refer to the Manage Validators guide or simply check the validator status on BeaconCha.in :


What’s Next