@wraith-protocol/sdk is a single npm package with three entry points. The root import gives you the agent client — a lightweight HTTP client for the managed Wraith platform. The chain-specific imports give you raw cryptographic primitives if you want to build custom stealth address integrations without the managed platform.
Installation
- npm
- pnpm
- yarn
Entry points
The package exposes three entry points, each with a distinct purpose and audience.| Import path | Purpose | Audience |
|---|---|---|
@wraith-protocol/sdk | Agent client — create agents, chat, manage payments | Most developers |
@wraith-protocol/sdk/chains/evm | Raw secp256k1 stealth crypto primitives | Power users building custom EVM integrations |
@wraith-protocol/sdk/chains/stellar | Raw ed25519 stealth crypto for Stellar | Power users building on Stellar |
Root import — agent client
fetch and TypeScript types. No crypto libraries, no database drivers, no native modules.
Use this entry point when you want to create agents, send payments, scan for incoming transfers, and interact with the AI via natural language.
Chain imports — crypto primitives
You only need these if you are building a custom stealth address flow without the managed agent platform.The Chain enum
Always use the Chain enum when specifying chains. Never pass raw strings — the enum is the single source of truth for chain identifiers across the SDK and platform API.
Available values
Usage patterns
Dependencies
| Package | Used by | Purpose |
|---|---|---|
@noble/curves | EVM + Stellar chain imports | Elliptic curve operations (secp256k1, ed25519, x25519) |
@noble/hashes | EVM + Stellar chain imports | SHA-256, SHA-512, keccak256 |
viem | EVM chain import + agent client | EVM address encoding and utilities |
@stellar/stellar-sdk | Stellar chain import only | StrKey encoding for Stellar G... addresses |
@stellar/stellar-sdk is an optional peer dependency. It is only required if you import @wraith-protocol/sdk/chains/stellar. You do not need it for the root import or the EVM chain import.ESM and CJS support
The package ships both ESM and CommonJS builds, plus TypeScript declarations for all three entry points.Next steps
Agent client
Full reference for the
Wraith and WraithAgent classes, all methods, and the AI tools table.EVM primitives
Low-level secp256k1 stealth address functions for Horizen, Ethereum, Polygon, Base, and other EVM chains.
Stellar primitives
Low-level ed25519 stealth address functions for Stellar.

