Skip to main content
The Developer SDK includes server adapters for applications that want a fixed route surface without repeating request parsing. These adapters never run in a browser and do not include a browser client.
Mount these routes only behind application authentication, authorization, validation, and rate limiting. The adapter protects the Swig API key from the response body; it does not decide who may use your application route.

Next.js

requireSwigAccess represents your application’s server-side session and authorization check. It must reject the request before the SDK handler runs.

NestJS

Any Fetch server

Both framework adapters wrap these Request/Response handlers.

Python

Adapt response.status and response.body at the authenticated framework boundary.

Routes

Preparation:
Reads:
Ramp:
Preparation routes return unsigned prepared data. The adapter does not sign transactions; the optional signing utilities are a separate, no-API-key surface. Sponsorship is intentionally not exposed by the adapter; call swig.transactions.sponsor(...) explicitly from trusted server code after your application returns a signed transaction.

Requester resolution

If requester authority comes from authenticated role context, resolve it on the server:
Validate that the caller may act for the resolved authority before returning it. feePayer accepts the same function form when payer selection depends on the authenticated caller.