> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usewraith.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Multichain stealth address platform for private payments

Wraith is a multichain stealth address platform. Send and receive private payments across EVM chains, Stellar, Solana, and CKB through a single SDK. An AI agent handles chain-specific crypto, key management, and privacy analysis inside Trusted Execution Environment hardware.

## How It Works

<img src="https://mintcdn.com/truth/SJlfH_n1UHSFJ8ir/assets/diagrams/architecture.svg?fit=max&auto=format&n=SJlfH_n1UHSFJ8ir&q=85&s=fc769db98d9e0727e9e1bbcb8016b158" alt="Architecture" width="720" height="440" data-path="assets/diagrams/architecture.svg" />

You install the SDK, get an API key, and build. No servers to run. No keys to manage. No chain-specific crypto to implement.

## Quick Start

### 1. Install

```bash theme={null}
npm install @wraith-protocol/sdk
```

### 2. Create an Agent

```typescript theme={null}
import { Wraith, Chain } from "@wraith-protocol/sdk";

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

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

### 3. Send a Private Payment

```typescript theme={null}
const response = await agent.chat("send 0.1 ETH to bob.wraith");
console.log(response.response);
// "Payment sent — 0.1 ETH to bob.wraith via stealth address 0x7a3f..."
```

### 4. Scan for Incoming Payments

```typescript theme={null}
const response = await agent.chat("scan for incoming payments");
// Agent detects payments sent to your stealth addresses
```

## Supported Chains

| Chain    | Family          | Status  | Native Asset |
| -------- | --------------- | ------- | ------------ |
| Horizen  | EVM             | Live    | ETH          |
| Ethereum | EVM             | Planned | ETH          |
| Polygon  | EVM             | Planned | MATIC        |
| Base     | EVM             | Planned | ETH          |
| Stellar  | Stellar         | Live    | XLM          |
| Solana   | Solana          | Live    | SOL          |
| CKB      | CKB (Cell/UTXO) | Live    | CKB          |

Adding a new EVM chain requires only configuration (RPC URL + contract addresses). Adding a new chain family requires implementing the `ChainConnector` interface.

## 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. Chat naturally and the AI routes to the right chain.
* **AI-powered** — natural language interface for payments, scanning, withdrawals, and privacy analysis.
* **TEE security** — private keys derived inside Intel TDX hardware enclaves. Never stored on disk.
* **Privacy scoring** — the agent proactively warns about timing analysis, address correlation, and other privacy risks.

## Documentation

### Getting Started

* [Getting Started](getting-started) — install, create an agent, send your first payment

### SDK Reference

* [SDK Overview](sdk/overview) — package structure, entry points, `Chain` enum
* [Agent Client](sdk/agent-client) — `Wraith` and `WraithAgent` class API
* [EVM Crypto Primitives](sdk/chains/evm) — low-level secp256k1 stealth address functions
* [Stellar Crypto Primitives](sdk/chains/stellar) — low-level ed25519 stealth address functions for Stellar
* [Solana Crypto Primitives](sdk/chains/solana) — low-level ed25519 stealth address functions for Solana
* [CKB Crypto Primitives](sdk/chains/ckb) — low-level secp256k1 stealth address functions for Nervos CKB

### Architecture

* [Architecture Overview](architecture/overview) — system diagram, modules, database schema
* [Chain Connectors](architecture/chain-connectors) — `ChainConnector` interface, adding chains
* [TEE Security](architecture/tee) — key derivation, attestation, privacy model

### Guides

* [Single-Chain Agent](guides/single-chain-agent) — full lifecycle on one chain
* [Multichain Agent](guides/multichain-agent) — one name, multiple chains
* [Bring Your Own Model](guides/bring-your-own-model) — use OpenAI/Claude instead of Gemini
* [Stealth Payments](guides/stealth-payments) — how stealth addresses work (with visuals)
* [Privacy Best Practices](guides/privacy-best-practices) — scoring, what to avoid

### Contracts

* [EVM Contracts](contracts/evm) — Solidity contract specs and deployment
* [Stellar Contracts](contracts/stellar) — Soroban contract specs and deployment
* [Solana Contracts](contracts/solana) — Anchor program specs and deployment
* [CKB Contracts](contracts/ckb) — RISC-V lock script and the Cell model

### API Reference

* [HTTP Endpoints](api-reference/endpoints) — full TEE server API
* [TypeScript Types](api-reference/types) — all SDK types
