# API Documentation for Vaulta Stake

## Parameters

| Parameter                      | Type    | Required | Description                                             |
|-------------------------------|---------|----------|---------------------------------------------------------|
| `address`                     | string  | Yes      | User's own Vaulta account address                      |
| `amount`                      | integer | Yes      | Amount to stake                                         |
| `network`                     | string  | Yes      | Network stake is on. Allowed: `mainnet`, `testnet`   |
| `proxy_account_address`       | string  | No       | EOS voting proxy account                                |

## Responses

### Success (HTTP 201)

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

### Bad Request (HTTP 400)

**Sample cURL Request**

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

### Notes
- Ensure that the `network` parameter is set correctly to either `mainnet` or `testnet`. 
- Replace `your-api-key-here` with your actual API key.
