Skip to content
On this page

Staking Position Initialization

[POST]/positions

EndpointDescription
https://eth-api.everstake.one/api/v1/eth2_staking/positionsMethod which gives an opportunity to generate a new staking position with the provided parameters.

Request Parameters

ParameterTypeDescription
external_user_idstringIdentifier for a customer
external_user_emailstringEmail address of a customer
withdrawal_addressstringEthereum withdrawal address
validators_countintegerThe quantity of validators
eth2_network_namestringThe network’s name, indicating either testnet (goerli) or mainnet (mainnet)

Request Example

json
{
  "external_user_id": "af3e9c8a-eb3f-4291-bf00-7020abee0edf",
  "external_user_email": "[email protected]",
  "withdrawal_address": "0x3F24C700fb5E741F2e8B2985627D44f56B8242F",
  "validators_count": 10,
  "eth2_network_name": "mainnet"
}

Request cURL

bash
curl -X 'POST' \
'https://eth-api.everstake.one/api/v1/eth2_staking/positions' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
  "external_user_id": "af3e9c8a-eb3f-4291-bf00-7020abee0edf",
  "external_user_email": "[email protected]",
  "withdrawal_address": "0x3F24C700fb5E741F2e8B2985627D44f56B8242F",
  "validators_count": 10,
  "eth2_network_name": "mainnet"
}'

Response Details

ParameterTypeDescription
successbooleanReflects true if the operation was completed successfully

Response Example

json
{
  "success": true
}