Skip to main content
@wraith-protocol/sdk is a single npm package with multiple entry points. Most developers use the root import. Power users building custom stealth address integrations use the chain-specific imports.

Installation

Entry Points

Root Import — Agent Client

This is the managed platform client. It talks to Wraith’s hosted TEE infrastructure over HTTP. Zero heavy dependencies — just fetch and TypeScript types. No crypto libraries, no database drivers, no native modules.

Chain Imports — Crypto Primitives

Each chain module exports the same conceptual functions adapted to that chain’s cryptographic scheme and address format. You only need these if you’re building custom stealth address integrations without the managed agent platform.

The Chain Enum

Always use the Chain enum when specifying chains. Never pass raw strings.

Available Values

Dependencies

@stellar/stellar-sdk and @solana/web3.js are optional peer dependencies. They’re only needed if you import their respective chain modules. The CKB module has no additional peer dependencies — it uses raw fetch for RPC calls and @noble/hashes for blake2b.

Package Exports

The SDK uses package.json exports to expose multiple entry points from a single package:
Both ESM and CJS formats are supported. TypeScript declarations are included.

Next Steps