Dexter
Dexter
Docs

Wallet Resolver

GET /api/wallets/resolver returns the managed Solana wallets assigned to the authenticated user. Used by MCP tools, the frontend, and connectors to establish wallet context.

Request

URL: https://api.dexter.cash/api/wallets/resolver

Headers:

Authorization: Bearer <supabase_access_token>

Also accepts Dexter MCP JWTs (verified with MCP_JWT_SECRET).

Response (200)

{
  "ok": true,
  "user": { "id": "550e8400-e29b-41d4-a716-446655440000" },
  "wallets": [
    {
      "publicKey": "BRANCHVDL53igBiYuvrEfZazXJm24qKQJhyXBUm7z7V",
      "label": "Main",
      "status": "assigned",
      "metadata": null,
      "isDefault": true,
      "permissions": { "trade": true, "view": true }
    }
  ]
}
FieldTypeDescription
user.idstringSupabase user UUID
wallets[].publicKeystringSolana public key
wallets[].labelstringWallet label (nullable)
wallets[].statusstringAlways "assigned" for active wallets
wallets[].isDefaultbooleanPrimary wallet for the user
wallets[].permissionsobject{ trade: boolean, view: boolean }

If the user has no wallets, wallets is an empty array.

Errors

StatusErrorWhen
401authentication_requiredNo valid token provided
500internal_errorServer-side failure

On this page