Pick between Simple, Full, and Partial SDK constructors based on bundle size, API shape, and how much wiring you want to do.
The SDK ships three constructors that wrap the same per-method construct* primitives. They differ in how much of the SDK comes pre-wired and what the resulting API surface looks like.
“I just want a quote and a swap.” Use the Simple SDK: one constructor, ready to call.
“I have a Node service that does Delta orders, Market Swaps, and price polling.” Use the Full SDK. You get namespaced access plus a typed <TxResponse> so your code knows what approveToken returns.
“I’m shipping a front-end and only sign Delta orders.” Use the Partial SDK: import constructBuildDeltaOrder, constructSignDeltaOrder, constructPostDeltaOrder and tree-shake the rest.
“I want a custom HTTP client (got, undici, superagent…).” All three variants accept a custom fetcher. See Configure providers.