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/sdkWorkspace consumers (e.g. the frontend) depend on:
{
"dependencies": {
"@streamline/sdk": "*"
}
}Peer / runtime
- Node 20+ (or modern browsers with bundler)
@mysten/sui1.36 (bundled as a dependency)
Environment (optional)
| Variable | Purpose |
|---|---|
STREAMLINE_PACKAGE_ID_TESTNET / NEXT_PUBLIC_PACKAGE_ID_TESTNET | Move package id |
STREAMLINE_INDEXER_URL / NEXT_PUBLIC_INDEXER_URL | Indexer REST base |
STREAMLINE_SUINS_DOMAIN / NEXT_PUBLIC_SUINS_DOMAIN | Parent domain (streamline.sui) |
STREAMLINE_SUI_TESTNET_RPC / NEXT_PUBLIC_SUI_TESTNET_RPC | Fullnode URL |
Defaults target the live Sui testnet deployment baked into the package.