Skip to content
On this page

Initialize New Validator with Provided Attributes

[POST]/provision

EndpointDescription
https://eth-api.everstake.one/api/v1/eth2_staking/provisionMethod which gives an opportunity to initialize a new validator with provided attributes.

Request Parameters

ParameterTypeRequiredDescription
withdrawal_addressstringYesEthereum address for withdrawal.
validators_countintegerYesQuantity of validators to be established.
eth2_network_namestringYesName of the network, specifying either the testnet (goerli) or mainnet (mainnet).
external_user_idstringNoUnique identifier of the customer.
external_user_emailstringNoUnique identifier of the customer.

Request Example

json
{
    "external_user_id": "afe3c9ca-eb3f-4291-bf00-7020abec0edf",
    "external_user_email": "[email protected]",
    "withdrawal_address": "0x3F124C700fb5E741F128e28985267D44f56B242F",
    "validators_count": 10,
    "eth2_network_name": "mainnet"
}

Request cURL

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

Response Details

ParameterTypeDescription
staked_eth_amountintegerThe total staked ETH amount.
eth1_withdrawal_addressstringEthereum address for withdrawal.
eth2_network_namestringIndicates whether the network is a testnet (Goerli) or mainnet (mainnet).
successbooleanA boolean indicating successful completion. The response codes can be either 200 or 201.

Response Example

json
{
    "staked_eth_amount": 32,
    "eth1_withdrawal_address": "0xE40F80618324C814cD444434670a44ba4583aE38",
    "eth2_network_name": "goerli",
    "success": true
}