v0.12.0. Use that tag for the Rust crate.
Supported runtimes
TypeScript: load the WebAssembly binary
The TypeScript package wraps the Rust engine compiled to WebAssembly. Callinit() once before you construct any client. It takes no argument in browsers or in Node.
vendor/bindings_wasm_bg.wasm asset. To serve the binary from your own CDN, pass its location:
wasmUrl points at the packaged binary if you need to copy it. For a pre-compiled WebAssembly.Module, use initWithModule.
Subpath entry points
React Native
The browser package cannot run on a device because Hermes has no WebAssembly.@kaleidorg/swap-sdk-react-native is the same Rust engine compiled for iOS and Android and exposed as a turbo module.
-
Prebuilt native binaries are downloaded from the release on install and verified against a SHA-256 manifest shipped in the npm package. No Rust toolchain, NDK, or Xcode is needed. Run
pod installfor iOS afterwards. -
With pnpm 10 or later, allow the package’s install script, or the binaries are never fetched and the module is missing at first import:
pnpm-workspace.yaml
-
With Expo, use
expo prebuildand a development build. -
The Arkade venue is a separate entry,
@kaleidorg/swap-sdk-react-native/arkade. It needs@kaleidorg/swap-sdk,@arkade-os/sdk, and@arkade-os/swapinstalled alongside, and Metro must resolve packageexports(the default from React Native 0.79).
Pinning a version
The SDK is0.x: a minor release can change the public surface, and patch releases never do. Depend on the minor you tested and take its patches: “@kaleidorg/swap-sdk”: ”^0.12.0” in package.json, or kaleidorg_swap_sdk~=0.12.0 in Python. On a 0.x version both forms accept patches and never cross into the next minor.
Read the changelog before moving to a new minor. Breaking changes are listed at the top of each release entry.
Next steps
Quickstart
Reach the signet maker and make a first swap.
Networks
Pick the network and matching chain access.