### Withdraw ETH from a Validator

Withdraw ETH from a validator using the execution layer. Must be signed by the validator's withdrawal address. Make sure to adhere to [withdrawal eligibility](https://docs.figment.io/docs/exiting-eth-validator) before performing partial withdrawals transaction.

#### Parameters

- **network**: (string, required) Allowed values: `mainnet`, `hoodi`  
- **amount**: (string, required) Amount to withdraw in ETH  
- **pubkey**: (string, required)

### Example

#### Create Withdrawal Transaction

```json
{
  "network": "mainnet"
}
```

### Response

#### Success (201 Created)

```json
{
  "data": {
    "network": "string",
    "signing_payload": "string",
    "unsigned_transaction_serialized": "string",
    "contract_call_data": "string"
  }
}
```

#### Error (400 Bad Request)

```json
{
  "error": "Bad Request"
}
```

### Curl Command

```bash
curl --request POST \
     --url https://api.figment.io/ethereum/withdrawal \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'x-api-key: your-api-key-here' \
     --data '{
  "network": "mainnet"
}'
```

**Updated 3 months ago**
