Revoke spending permission
curl -X POST "https://api.52-28-238-205.sslip.io/v1/delegations/{id}/revoke" \ -H "Cookie: <console session cookie>" \ -H "Content-Type: application/json" \ -d '{"use_demo_wallet":true,"signed_tx":"string"}'Returns an unsigned SPL revoke transaction for the wallet to sign, or submits a signed one; an unsigned permission is cancelled at once. Console session or API key with delegation:sign.
https://api.52-28-238-205.sslip.ioAuthorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...
Path
idstringrequiredOn-chain permission (delegation) id (dlg_...).
Body
application/json. Fields are listed under Request body below.
owner. The caller must hold this permission, or the call is refused with 403.uapg_session<token>Console session cookie (HttpOnly, SameSite=Lax)
id*IdOn-chain permission (delegation) id (dlg_...).
application/json- body
use_demo_wallet?Use Demo Walletfalsesigned_tx?string|nullSuccess.
application/json- response
delegation*unsigned_tx?|Wallet transaction contract: a COMPLETE unsigned Solana transaction in LEGACY format (not v0, not a bare message), base64. Layout: compact-u16 signature count (1), one zeroed 64-byte signature slot for the fee payer (the owner's wallet), then the legacy message with a fresh recent blockhash. Decode with base64 and deserialize with web3.js Transaction.from(bytes) (never VersionedTransaction / VersionedMessage), or hand the raw bytes to a Wallet Standard solana:signAndSendTransaction. Null on the mock chain (test mode).
tx_encoding?|Encoding of unsigned_tx: always base64.
tx_format?|Transaction format of unsigned_tx: always legacy.
recent_blockhash?|Blockhash inside unsigned_tx (base58).
last_valid_block_height?|Block height after which unsigned_tx expires; build a new one (repeat the same request) after that.
[key: string]?anyPOSTRefresh spending permission
Re-reads the delegate and remaining delegated amount on chain and marks the permission revoked if it was removed in the wallet. Console session or API key with payment:read.
POSTCreate 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.