SDK

Install

Add @streamline/sdk from the StreamLine monorepo.

Install

The package currently lives in the monorepo as @streamline/sdk (private until published to npm).

From the monorepo

# repo root
npm install
npm run build -w @streamline/sdk

Workspace consumers (e.g. the frontend) depend on:

{
  "dependencies": {
    "@streamline/sdk": "*"
  }
}

Peer / runtime

  • Node 20+ (or modern browsers with bundler)
  • @mysten/sui 1.36 (bundled as a dependency)

Environment (optional)

VariablePurpose
STREAMLINE_PACKAGE_ID_TESTNET / NEXT_PUBLIC_PACKAGE_ID_TESTNETMove package id
STREAMLINE_INDEXER_URL / NEXT_PUBLIC_INDEXER_URLIndexer REST base
STREAMLINE_SUINS_DOMAIN / NEXT_PUBLIC_SUINS_DOMAINParent domain (streamline.sui)
STREAMLINE_SUI_TESTNET_RPC / NEXT_PUBLIC_SUI_TESTNET_RPCFullnode URL

Defaults target the live Sui testnet deployment baked into the package.

On this page