Solrouter
API ReferencePrivate Balance

Encrypt a public balance into an encrypted balance

One tx, ~10s. Funds stay at the same Umbra address but the running balance + future activity become ciphertext on chain. No mixer, no fresh address. Use when you want amount-privacy without breaking address linkability.

POST
/agents/v1/wallets/{id}/encrypt
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/agents/v1/wallets/f47ac10b-58cc-4372-a567-0e02b2c3d479/encrypt" \  -H "Content-Type: application/json" \  -d '{    "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",    "amount": "1000000"  }'
{
  "sessionId": "b3d9a1e2-5c4f-4a8b-9e7d-1f2a3b4c5d6e",
  "status": "running",
  "estimatedSeconds": 12
}
{
  "error": "missing_required_fields"
}