Skip to Content
SDK ReferenceOverview
Overview

Module map of @zkscatter/sdk.

@zkscatter/sdk ships as a multi-entry package. Pick the subpath that matches what you’re doing — bundlers tree-shake the rest.

Modules

Compatibility matrix

SubpathBrowserNode / SSRReact Native
root / core
contracts
zk⚠️ no Worker⚠️ native prover required
relayer
orderbook
notes⚠️ memory only⚠️ memory only
react

Versioning

@zkscatter/sdk follows semver. Contract ABIs are pinned per minor — upgrading the SDK to track a contract upgrade is always a minor bump, even if the surface is source-compatible. Each minor release notes the contract version it tracks alongside any breaking source changes.

Conventions

  • All async APIs accept an optional AbortSignal (signal? parameter) for cancellation.
  • ZK and contract-layer numeric values use native bigint (commitments, amounts in callDeposit, EdDSA coordinates, etc.). HTTP wire types in relayer and orderbook use strings for amounts/nonces and numbers for maxFee/expiry/nonce to match the relayer protocol. Storage adapters serialize bigints at their boundary.
  • All ABIs are exposed as both raw strings (*_ABI) and pre-parsed ethers Interface objects (*_IFACE) — use the iface for decoding logs without re-parsing.
  • All HTTP clients accept a fetch override for custom transports (proxies, mocks, polyfills).