The preview SDK supports swaps and sequential multi-swaps. Zaps are not enabled yet; capabilities().zap.available is false.
Install the versioned preview package:
This is a downloadable preview, not a published npm-registry package.
Keep your API key on your backend. Users review and sign with their wallet in your app.
Route selects Robinhood Chain automatically; you do not need to pass chainId. Wallet helpers still verify the connected network.
Supply your connected wallet, authenticated backend callbacks, durable store and review UI. The swap helper also checks the reviewed builder deployment. No redirect is needed.
Weights divide each input, not final portfolio dollar values. Each trade uses normal builder fees and preparation limits. Completed trades remain completed if a later trade stops. The helper records settlements and resumes from the next leg.
Zaps require an enabled backend and an atomic-capable wallet. They count workspace usage but collect no extra builder fee. Wallet account upgrades may be required and must be disclosed; upgraded accounts cannot use the current EOA-only builder swap path. The backend restricts deposits to supported pools.
Keep the operation ID across reloads. Recover an uncertain swap with its transaction hash, or a zap with its wallet batch ID. Never create another operation to bypass a pending submission.
Capabilities · Integration API