Skip to main content
Install the SDK, create your first agent, and send a private payment in under 5 minutes.

Prerequisites

  • Node.js 18+
  • A Wraith API key (sign up at wraith.dev)
  • A wallet with a signing capability (MetaMask, viem, ethers, etc.)

Install

Initialize the Client

The Wraith client handles all communication with the managed TEE infrastructure. You never touch servers, keys, or chain-specific crypto directly.

Create an Agent

An agent is your identity on the Wraith network. It has a .wraith name, an on-chain address, and stealth keys — all derived inside TEE hardware.
The agent is now live. It has:
  • A .wraith name (alice.wraith) registered on-chain
  • A stealth meta-address for receiving private payments
  • An AI agent inside the TEE ready to process commands

Fund the Agent

On testnet, the agent is automatically funded via faucet. You can also request funds manually:

Send a Payment

Use natural language to send a stealth payment:
Behind the scenes, the agent:
  1. Resolves bob.wraith to a stealth meta-address
  2. Generates a one-time stealth address from the meta-address
  3. Sends ETH to the stealth address
  4. Publishes an announcement so bob.wraith can detect the payment

Scan for Incoming Payments

Check Balance

Or programmatically:

Withdraw

Move funds from stealth addresses to a destination:

Connect to an Existing Agent

If you already have an agent, reconnect without creating a new one:

Error Handling

All methods throw on failure. Errors include the server’s error message:

Next Steps