# Connect wallet

Verifies the signed Sign In With Solana message and stores the wallet connection. Console session or API key with wallet:connect; the nonce is used once.

`POST /v1/wallets/connect`

Verifies the signed Sign In With Solana message and stores the wallet connection. Console session or API key with wallet:connect; the nonce is used once.

Requires permission `wallet:connect`.

## Request body

```json
{
  "address": "string",
  "message": "string",
  "signature": "string",
  "wallet_name": "string",
  "use_demo_wallet": true
}
```

## Responses

- **200**: Success.
- **400**: Invalid request: a field is missing or malformed (VALIDATION_ERROR).
- **401**: No valid session, API key or agent credential (UNAUTHENTICATED, AGENT_CREDENTIAL_INVALID).
- **403**: Authenticated but not allowed: missing permission, passkey step-up required, or denied by policy.

Example 200 response:

```json
{
  "connection": {
    "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "network": "eip155:84532",
    "network_name": "string",
    "address": "string",
    "wallet_name": "string",
    "usdc_account": "string",
    "plans_account": "string",
    "plans_account_balance_base_units": "50000",
    "usdc_balance_base_units": "50000",
    "return_addresses": {},
    "status": "active",
    "connected_at": "2026-11-16T12:00:00Z",
    "demo": true,
    "mock": true
  }
}
```
