Solrouter
API ReferencePrivate Balance

Encrypted-balance snapshot for given mints

Decrypt and return the managed wallet's encrypted balance for one or more mints (comma-separated).

GET
/agents/v1/wallets/{id}/balance
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Query Parameters

mints*string

comma-separated mint addresses

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/agents/v1/wallets/f47ac10b-58cc-4372-a567-0e02b2c3d479/balance?mints=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v%2CSo11111111111111111111111111111111111111112"
{
  "balances": [
    {
      "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "state": "encrypted",
      "raw": "1000000"
    },
    {
      "mint": "So11111111111111111111111111111111111111112",
      "state": "unknown",
      "raw": null
    }
  ]
}
{
  "error": "missing_required_fields"
}
{
  "error": "missing_required_fields"
}