Wallets
POST/v1/delegations

Create spending permission

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/delegations" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"cap_base_units":"50000"}'

Prepares a capped SPL approve on Solana devnet for the Abazi executor and returns the unsigned transaction (fee payer is the owner) for the wallet to sign. Console session or API key with delegation:sign; the cap can't exceed the organization budget, and 409 NO_TEST_USDC or NO_SOL_FOR_FEE returns a faucet link.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/delegationsBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Body

application/json · required. Fields are listed under Request body below.

Requires permissiondelegation:sign
Held by owner. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Request Body

application/json
  1. body
cap_base_units*|

Most the spending permission lets the Abazi executor send, in integer base units.

Response Body

Success.

application/json
  1. 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.

explanation?|null
[key: string]?any