Use this path when
- you want the API key to stay on the server
- you do not want to wire each prepare route by hand
- you still want browser code to work with wallet handles and prepared results
Next.js
Create one catch-all route:NestJS
Create one controller mounted at your Swig proxy prefix:Routes the helpers cover
The framework helpers cover:POST /wallet/createPOST /preparePOST /transfer/solPOST /transfer/spl-tokenPOST /swap/jupiter
Browser-side usage
Once your proxy exists, browser code can useSwigBrowserClient and call only
your local app routes:
Server-side requester resolution
If your app does not includerequesterAuthority in the browser request, the
helpers let you resolve it server-side:

