Ethereum integration
The API creates staking and validator-operation resources, while your client signs and broadcasts Ethereum transactions.
Flow overview
Create a stake
- Create a single-validator stake with
POST /v1/ethereum/stakesand anIdempotency-Key. - Use the returned deposit data to prepare, sign, and broadcast the deposit transaction.
- Report the broadcast transaction hash with
PUT /v1/ethereum/stakes/{stakeId}/submission. - Poll
GET /v1/ethereum/stakes/{stakeId}whiletransaction.statusissubmitted. Stop when it changes toconfirmedorfailed.
The withdrawal address becomes part of the validator withdrawal credentials. Validate it before creating the stake.
Exit a validator
- Create an exit request with
POST /v1/ethereum/validators/{pubkey}/exit-requestsand anIdempotency-Key. - Sign and broadcast the transaction represented by the request.
- Report the transaction hash with
PUT /v1/ethereum/validators/{pubkey}/exit-requests/{requestId}/submission. - Poll
GET /v1/ethereum/validators/{pubkey}/exit-requests/{requestId}whilestatusissubmitted. Stop when it changes toconfirmedorfailed.
Cancel an unsubmitted exit request with DELETE /v1/ethereum/validators/{pubkey}/exit-requests/{requestId}. Consult the API Reference for the states in which cancellation is accepted.
Request a partial withdrawal
- Create a request with
POST /v1/ethereum/validators/{pubkey}/withdrawal-requestsand anIdempotency-Key. SendamountGweias a positive integer string. - Broadcast the transaction represented by the request, then report its hash with
PUT /v1/ethereum/validators/{pubkey}/withdrawal-requests/{requestId}/submission. - If submission returns
202 Accepted, followRetry-After, then pollGET /v1/ethereum/validators/{pubkey}/withdrawal-requests/{requestId}whilestatusissubmitted. Stop when it changes toconfirmedorfailed.
Use GET /v1/ethereum/validators/{pubkey}/withdrawal-capacity only when your application needs to show the validator's current eligibility or available amount before creating a request. The create endpoint performs the authoritative validation.