Staking Position Initialization
[POST]/positions
Endpoint | Description |
---|---|
https://eth-api.everstake.one/api/v1/eth2_staking/positions | Method which gives an opportunity to generate a new staking position with the provided parameters. |
Request Parameters
Parameter | Type | Description |
---|---|---|
external_user_id | string | Identifier for a customer |
external_user_email | string | Email address of a customer |
withdrawal_address | string | Ethereum withdrawal address |
validators_count | integer | The quantity of validators |
eth2_network_name | string | The 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
Parameter | Type | Description |
---|---|---|
success | boolean | Reflects true if the operation was completed successfully |
Response Example
json
{
"success": true
}