Voluntary Exits
const challenge = JSON.stringify({
intentToExit: "I am signing this message and requesting that Staked exit the following validators from the network",
validatorIndexes: [1234, 1235, 1236], // REQUIRED: list of validator indexes
date: Date.now().toString(), // optional, timestamp this was signed
address: withdrawal_address, // REQUIRED: the signing address
}, null, 2)
const signature = await web3.eth.personal.sign(challenge, withdrawal_address);
const packed_challenge = web3.utils.toHex('\u0019Ethereum Signed Message:\n' + challenge.length.toString() + challenge);Request Staked to submit exits
Query Parameters
Name
Type
Description
Request Body
Name
Type
Description
Request voluntary exits for a type-0x01 withdrawal address
Path Parameters
Name
Type
Description
Query Parameters
Name
Type
Description
Submit voluntary exits for a type-0x01 withdrawal address
Path Parameters
Name
Type
Description
Request Headers
Name
Type
Description
Query Parameters
Name
Type
Description
Request Body
Name
Type
Description
Last updated
Was this helpful?