Skip to main content

post-eth-v1-beacon-pool-voluntary_exits


POST /eth/v1/beacon/pool/voluntary_exits

Submit SignedVoluntaryExit object to node's pool.

Sends the SignedVoluntaryExit object to the node pool; in the event that it is validated, the node MUST disseminate it to the network.

Example Request and Result for /v1/beacon/pool/voluntary_exits

In this section, we provide an illustrative example of a request made to retrieve details contents using the /v1/beacon/pool/voluntary_exits endpoint. Additionally, we present the resulting response containing information about submitting the SignedVoluntaryExit object.

Parameters

FieldType
messageobject
epochstring
validator_indexstring
signaturestring
info

The example in this section uses a non-existing project id.

Make sure you replace it with your Ethereum Holesky Beacon endpoint when issuing the API calls.

Don't have a project id? Here's a straightforward guide on how to obtain one!

Submit SignedVoluntaryExit object to node's pool.

POST https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/beacon/pool/voluntary_exits

Request Body

NameTypeDescription
message*object
epoch*string1
validator_index*string1
signature*string0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505

Voluntary exit is stored in node and broadcasted to network

Curl Request example

curl -X 'POST' \
'https://eth-holesky-beacon.blastapi.io/<project_id>/eth/v1/beacon/pool/voluntary_exits' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"message": {
"epoch": "1",
"validator_index": "1"
},
"signature": "0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505"
}'