Skip to main content
Wraith Protocol lets you add private payments to any application with a single npm package. Install the SDK, get an API key, and your users can send and receive funds at one-time stealth addresses — no on-chain link between sender and receiver, no keys to manage, no chain-specific crypto to implement.

Quick Start

Install the SDK and send your first stealth payment in under 5 minutes.

How Stealth Addresses Work

Understand the cryptography behind privacy-preserving payments.

SDK Reference

Full API reference for the @wraith-protocol/sdk package.

HTTP API

Direct REST API reference for the Wraith TEE server.

How it works

Wraith manages a Trusted Execution Environment (TEE) that handles key derivation, stealth address generation, and transaction signing on your behalf. You never touch private keys or chain-specific cryptography.
Your App
    |
    v
@wraith-protocol/sdk        ← npm package you install
    |
    v
Wraith TEE Infrastructure   ← managed by Wraith (Phala TEE)
    |
    v
Blockchains                 ← Horizen, Stellar, Ethereum, ...
1

Install the SDK

npm install @wraith-protocol/sdk
2

Create an agent

import { Wraith, Chain } from "@wraith-protocol/sdk";

const wraith = new Wraith({ apiKey: "wraith_..." });

const agent = await wraith.createAgent({
  name: "alice",
  chain: Chain.Horizen,
  wallet: "0xYourWallet",
  signature: "0xSignature",
});
3

Send a stealth payment

const res = await agent.chat("send 0.1 ETH to bob.wraith");
// "Payment sent — 0.1 ETH to bob.wraith via stealth address 0x7a3f..."
4

Scan for incoming payments

const res = await agent.chat("scan for incoming payments");
// Agent detects all payments sent to your stealth addresses

Key features

Stealth Addresses

Every payment goes to a fresh one-time address. No on-chain link between sender and receiver.

Multichain

One agent, multiple chains. Supports Horizen, Stellar, Ethereum, Polygon, Base, and Solana.

AI-Powered

Natural language interface for payments, scanning, withdrawals, invoicing, and privacy checks.

TEE Security

Private keys derived inside Intel TDX hardware enclaves. Never stored on disk.

Privacy Scoring

Proactive warnings about timing analysis, address correlation, and amount fingerprinting.

Bring Your Own Model

Use OpenAI, Claude, or Gemini as the AI backend instead of the default.