Exits
Learn how to initiate the validator unstaking process
How voluntary exiting works
To initiate unstaking, validators are required to perform a SignedVoluntaryExit
transaction, where the transaction is signed using Luganodes' validator keys.
Exiting validators must submit a signed challenge with relevant validator information. Thereafter, the createAndSignChallenge
function generates the necessary signature for the exit API request, relying on validator indexes (found in the Get Delegation object response) and the withdrawal address.
We have created a script to perform the aforementioned operations with ease.
Script to create a Signed Challenge
Note: controllerAddress
can be used alternatively to the withdrawalAddress
in the script below
Request Luganodes to submit exits
POST
/api/exit
Request Luganodes to exit a set of validators for a given withdrawal address. The list of validators comes from a challenge that must be signed with the withdrawal address. See the above code snippet for constructing the body for this method.
NOTE: If the challenge and signature check out, this submits the voluntary exits and will initiate the process for exiting validators. This method does not return the voluntary exits.
Headers
Name | Type | Description |
---|---|---|
api-key* | String | API Key provided by Luganodes |
Query Parameters
Name | Type | Description |
---|---|---|
key* | String | The public address of the withdrawal key or the controller key to exit |
Request Body
Name | Type | Description |
---|---|---|
challenge* | String | The packed challenge formed using above snippet |
signature* | String | The packed signature formed using above snippet |
Last updated