LLM prompt — copy and paste into your coding agent
/api/v1/bungee/quote) and the Socket Swap V3 API (/v3/swap/quote), and what you need to change in your integration.
Why migrate?
The Socket Swap V3 API (/v3/swap/quote) is the unified endpoint for Socket routes. It provides:
- A cleaner, normalized route model for same-chain swaps and cross-chain bridges
- Simpler execution flow — just get a quote, approve (if needed), and send
txData.object - No
submitstep — transactions are submitted directly on-chain, not via a Bungee submit endpoint - Status tracking via
/v3/swap/statususing thequoteId
Endpoint changes
Response shape changes
The Swap V3 API returns a flatroutes array instead of autoRoute / depositRoute / manualRoute sub-objects.
Before (Bungee API):
Execution flow changes
Before (Bungee API — Auto Mode):GET /api/v1/bungee/quote→ getautoRoute- Approve
approvalData.spenderAddressif needed - Sign
autoRoute.signTypedDatawithPermitWitnessTransferFrom POST /api/v1/bungee/submitwith signature → getrequestHash- Poll
GET /api/v1/bungee/status?requestHash=...
GET /v3/swap/quote?userOps=tx→ getroutes[]- Approve
route.approval.spenderAddressifroute.approvalis present - Submit
route.txData.objectas a transaction fromuserAddress - Poll
GET /v3/swap/status?quoteId=...
submit endpoint. The Swap V3 API returns a ready-to-send transaction.
Status endpoint changes
Before:quoteId.
Status values
The Swap V3 status response has two string fields:status— high-level lifecycle state for integrators (what you should usually branch on)statusCode— finer-grained Bungee/Socket pipeline code (same names as the old numeric enum, but as strings)
status (high-level)
Deposit flows may also return:
REFUNDING, REFUND_FAILED, MANUAL_REVIEW_REQUIRED.
statusCode (fine-grained)
These are the complete statusCode values returned by /v3/swap/status:
EXTRACTED in plain terms: the source-chain extraction tx is confirmed (funds left the user / entered the bridge pipeline), but the destination fulfillment tx is not complete yet. Treat it as in-progress — same high-level status as ASSIGNED (IN_PROGRESS).
Deposit addresses
The deposit flow is available viauserOps=deposit on /v3/swap/quote. The response structure has changed — see the Deposit Addresses Guide for the updated flow.
What changes & stays the same
- Base URL changes from
https://dedicated-backend.bungee.exchangetohttps://backend.socket.tech - Auth headers change — use
affiliateandx-api-keyas issued for your integration - Native token address:
0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE - Fee parameters:
feeBpsandfeeTakerAddressstay same - Chain support remains same
API Reference
Full Socket Swap V3 API reference
Get API Access
Request production API credentials