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
| Feature | Bungee API | Socket Swap V3 API |
|---|---|---|
| Quote endpoint | GET /api/v1/bungee/quote | GET /v3/swap/quote |
| Status endpoint | GET /api/v1/bungee/status | GET /v3/swap/status |
| Submit endpoint | POST /api/v1/bungee/submit | Not needed — submit txData.object directly on-chain |
| Route param | N/A | userOps=tx (required) |
| Transaction identifier | requestHash | quoteId |
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 uses string status codes instead of numeric codes:| Bungee numeric code | Socket Swap V3 statusCode |
|---|---|
3 / 4 (completed) | COMPLETED |
5 (expired) | EXPIRED |
6 (cancelled) | FAILED |
7 (refunded) | REFUNDED |
| In progress | 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