constructFullSDK returns the same namespaced API as the Simple SDK (sdk.swap.*, sdk.delta.*, sdk.quote), but you construct the fetcher and contract caller yourself. That extra wiring buys you a typed <TxResponse> generic and the freedom to share one caller across multiple SDK instances or chains.
When to use this
- You want write methods to return your wallet library’s native response type (e.g., viem
Hexorethers.ContractTransaction) instead of a bare transaction hash. - You need one
contractCallerto back several SDKs — for example, the same signer used on mainnet (chainId: 1) and Optimism (chainId: 10). - You’re building infrastructure that abstracts the fetcher (custom retry, caching, logging) and don’t want the Simple SDK to wrap it.
Construct it
constructEthersContractCaller, constructEthersV6ContractCaller, or constructWeb3ContractCaller to use a different wallet library. See Configure providers for each variant.
Typed transaction responses
The<TxResponse> generic is the type that every write method returns. It’s inferred from the contract caller you pass.
| Contract caller | <TxResponse> |
|---|---|
constructViemContractCaller | viem Hex (the transaction hash) |
constructEthersContractCaller (v5) | ethers.ContractTransaction |
constructEthersV6ContractCaller | ethers v6 ContractTransactionResponse |
constructWeb3ContractCaller | web3.js PromiEvent<TransactionReceipt> |
What’s available
The namespaces are identical to Simple SDK:sdk.delta: full Delta lifecycle —getDeltaPrice,submitDeltaOrder, build/sign/post split,getDeltaOrders(paginated),cancelDeltaOrders, plus approve/preSign.sdk.quoteexposesgetQuote.sdk.swap: rate, build, approve, balances, spender, tokens, adapters, swapTx (Market execution path for swaps).sdk.otcOrdersexposes the AugustusRFQ maker/taker orders used for OTC; see OTC.
Sharing one caller across chains
Because you own the caller, you can reuse it:Related pages
Partial SDK
Drop unused modules entirely with
constructPartialSDK.Configure providers
All four contract callers and both fetchers, with examples.
Swaps → Delta
The full Delta order lifecycle, including the split build/sign/post flow.
Swaps → Market
Market-Swap walkthrough using the namespaced SDK.