Wallet

Sponsored SOL/SPL withdrawal (passkey-authorized, V3)

The relayer submits and floats the network fee; the smart account reimburses the attested network cost in full plus the on-chain-recomputed protocol fee, atomically. The backend rejects drift beyond 120% of the quoted network fee.

POST
/wallet/withdraw

The relayer submits and floats the network fee; the smart account reimburses the attested network cost in full plus the on-chain-recomputed protocol fee, atomically. The backend rejects drift beyond 120% of the quoted network fee.

Authorization

cookieAuth
pid_access<token>

JWT access token set by /auth/google/callback or /auth/refresh

In: cookie

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/wallet/withdraw" \  -H "Content-Type: application/json" \  -d '{    "asset": "string",    "to": "string",    "amount": "string",    "nonce": "string",    "expiry": 0,    "feePolicyVersion": 0,    "quotedNetworkFeeLamports": "string",    "assertion": {      "id": "string",      "signature": "string",      "authenticatorData": "string",      "clientDataJSON": "string"    }  }'
{  "signature": "string",  "networkFeeLamports": "string",  "protocolFeeLamports": "string",  "status": "confirmed"}