Partial Exits

Partial Exit Request

POST /api/exit/partial

Client can call this API to generate an unsigned transaction to perform partial withdrawals. This unsigned transaction needs to be signed by the validator withdrawal address and broadcasted to the network.

Query Parameters

Name
Type
Description

api_key*

String

API Key provided by Luganodes

key*

String

The public address of the withdrawal key or the controller key to exit

Request Body

Name
Type
Description

address*

String

Public address of validator

amountToWithdraw*

Number

Amount of stake to be withdrawn

{
    "message": "Partial exit transaction created",
    "result": {
        "to": "0x0000bbddc7ce488642fb579f8b00f3a590007251",
        "address": "b938fb66a7794767f1d9a115cba6b3be8385474531c4572d7067bb1051cc00eaef35f9c38690fa3fb2bf46e1f5b3d8b8",
        "amountToWithdraw": 12,
        "withdrawalKey": "0x8C24B68141552e0844354B0b638031918CAAFaeB",
        "unsignedTx": "0x02f85083088bb04b843b9aca0084a76be918830186a0800bb838b938fb66a7794767f1d9a115cba6b3be8385474531c4572d7067bb1051cc00eaef35f9c38690fa3fb2bf46e1f5b3d8b800000002cb417800c0",
        "partialExitRequestTrx": {
            "data": "0xb938fb66a7794767f1d9a115cba6b3be8385474531c4572d7067bb1051cc00eaef35f9c38690fa3fb2bf46e1f5b3d8b800000002cb417800",
            "value": "11",
            "nonce": 75,
            "gasLimit": 100000,
            "maxFeePerGas": "2808867096",
            "maxPriorityFeePerGas": "1000000000",
            "type": 2,
            "chainId": "560048"
        }
    }
}

Partial exit operations can be performed for one validator at a time. If you want to perform batch operations, you can use our CLI.

Types

Partial Exit Response Object

Property
Description
Type

message

Transaction generation status

String

result

Result Object

Object

Result Object

Property
Description
Type

address

Public address of validator

String

amountToWithdraw

Amount of stake to be withdrawn NOTE: Amount resulting in the validator's balance below 32 ETH is not allowed.

Object

unsignedTx

Unsigned transaction object which needs to be signed wiith the validator withdrawal address

String

withdrawalKey

Withdrawal Address of validator

String

partialRequestTrx

Transaction Object

Object

Last updated