0x02-enabled validator, follow the steps below:
- Create a withdrawal request.
- Sign and broadcast the transaction.
The flow is supported for both Ethereum and SSV validators via the same endpoint.
1. Create withdrawal request
The flow applies only to active validators using the 0x02 type of withdrawal credentials.
Send a POST request to /api/v1/eth/staking/direct/tx/withdrawal/partial.
Example request:
pubkeys— list of validators’ public keys.amount— amount of tokens in ETH to withdraw from each validator. Note that remaining balance must be equal or more than 32 ETH. If specified as 0, the validator will be fully withdrawn and exit the network.
serializeTx— serialized unsigned transaction.to— recipient address for this transaction.gasLimit— maximum limit for this block.data— transaction data.value— amount this transaction is sending in Wei.chainId— chain ID this transaction is authorized on, as specified by EIP-155.type— EIP-2718 type of this transaction envelope.maxFeePerGas— maximum price per unit of gas this transaction will pay for the combined EIP-1559 block’s base fee and this transaction’s priority fee in Wei.maxPriorityFeePerGas— price per unit of gas in Wei, which is added to the EIP-1559 block’s base fee. This added fee is used to incentivize miners to prioritize this transaction.
2. Sign and broadcast transaction
PrepareserializeTx from the previous step to sign and broadcast the signed transaction to the Ethereum network.