Quote the realtime network fee for a sponsored withdrawal
Returns the backend's realtime network-cost estimate plus the fixed protocol percentage for the active fee policy. The client signs the intent + policy (never amounts) and echoes the quoted network fee as the drift reference.
Returns the backend's realtime network-cost estimate plus the fixed protocol percentage for the active fee policy. The client signs the intent + policy (never amounts) and echoes the quoted network fee as the drift reference.
Authorization
cookieAuth 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
curl -X POST "https://example.com/wallet/withdraw/quote" \ -H "Content-Type: application/json" \ -d '{ "asset": "string" }'{ "networkFeeLamports": "string", "protocolFeeBps": 0, "feePolicyVersion": 0, "totalFeeLamports": "string", "chainTime": 0, "treasury": "string"}Create the wallet POST
Creates the wallet for the authenticated PID with a user-supplied Solana address. The chain is fixed to `solana` for V3 (single-chain MVP). A PID has at most one wallet: creating again returns the existing wallet. Custody is record-only — Peridot does not generate, hold, or return any key material.
Sponsored SOL/SPL withdrawal (passkey-authorized, V3) POST
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.