Wallets
POST/v1/spending-wallets/{id}/refresh
Refresh spending wallet
curl -X POST "https://api.52-28-238-205.sslip.io/v1/spending-wallets/{id}/refresh" \ -H "Cookie: <console session cookie>"Reads the wallet's on-chain balance and marks it funded or empty. Console session or API key with payment:read.
Server URL
https://api.52-28-238-205.sslip.ioPOST/v1/spending-wallets/{id}/refreshBase URL: https://api.52-28-238-205.sslip.io
Authorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...
Path
idstringrequiredSpending wallet id (swl_...).
Requires permissionpayment:read
Held by
owner, admin, finance, approver (own team), developer, merchant_owner, merchant_developer, operator. The caller must hold this permission, or the call is refused with 403.cookie
uapg_session<token>Console session cookie (HttpOnly, SameSite=Lax)
id*IdSpending wallet id (swl_...).
Success.
application/json- response
wallet*funding*[key: string]?anyPOSTCreate spending wallet
Creates an agent's spending wallet on one EVM or Tron test network, or returns the existing one. Console session or API key with wallet:connect; Solana and networks off by decision are refused.
POSTSweep spending wallet
Sends the wallet's full balance back to the owner's return address and issues a sweep receipt. Console session or API key with wallet:connect; a console session needs a passkey step-up within the last 5 minutes, and an empty wallet can't be swept (409).