Skip to main content

Wallet Access Policies

Wallet access policies control who may send, swap, view balances, export, or sign with treasury wallets in your org. They complement spend policies (platform-app caps on embedded end-users) and transaction guardrails (agent Intents API limits).

Requirements
  • Pro or higher plan
  • Human JWT only — agents receive 403 on policy CRUD

When to use

ScenarioPolicy type
Cap consumer wallet spend in your appSpend policies
Let a specific agent view treasury balancesWallet access (can_view_balance)
Restrict which chains an ops role can send onWallet access (allowed_chains)
Autonomous agent on-chain actionsAgent signing keys + guardrails

Endpoints

MethodPathDescription
POST/v1/treasury/wallets/access-policiesCreate policy
GET/v1/treasury/wallets/access-policiesList (?scope_type=, ?scope_id=)
DELETE/v1/treasury/wallets/access-policies/{id}Soft-delete

Create example

curl -X POST "https://api.1claw.xyz/v1/treasury/wallets/access-policies" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"scope_type": "org",
"principal_type": "user",
"principal_id": "USER_UUID",
"can_send": true,
"can_swap": true,
"can_view_balance": true,
"can_export": false,
"allowed_chains": ["ethereum", "solana"],
"max_value_per_tx_eth": "0.25",
"daily_limit_eth": "1.0"
}'

Scope types

scope_typescope_idApplies to
walletTreasury wallet UUIDOne wallet
platform_appPlatform app UUIDWallets provisioned by that app
org(omit)All org treasury wallets

Principal types

principal_typeprincipal_id
userUser UUID
agentAgent UUID
roleRole tag (matches wallet_roles on user/agent)
platform_appPlatform app UUID

Dashboard

Settings → Wallet Access (/settings/wallet-access) — create and revoke policies with a visual form.

Enforcement status

Policy CRUD and dashboard management are live in v0.53.1. Runtime evaluation (evaluate_wallet_access) is implemented in the domain layer; wiring into every treasury send/swap path is part of the v0.53.1 parity sprint. Spend policies remain the primary enforcement path for embedded wallet end-user sends today.