---
name: talos
description: Act privately on Elysium with Talos. Use when a user wants to shield USDC or HYPE, send to a shielded address, swap HYPE and USDC on Uniswap v4 without showing their wallet, withdraw to a fresh address through a relayer, or prove one past action to someone (selective disclosure).
---

# Talos

Talos is a shielded balance on Elysium (chain 99901). Balances are notes in a Merkle tree, one pool per asset (USDC, HYPE). Every action is a Groth16 proof made on the user's machine; the relayer sends it and pays the gas.

## Connect
- SDK (one ES module, browser and Node): https://www.talosprivacy.xyz/sdk/talos.mjs, with `npm i viem snarkjs poseidon-lite @noble/curves @noble/ciphers @noble/hashes`
- HTTP API: https://www.talosprivacy.xyz/docs/api
- MCP, read-only (pool_stats, relayer_quote, swap_quote, verify_disclosure): https://www.talosprivacy.xyz/api/mcp
- Docs: https://www.talosprivacy.xyz/docs

## Keys
- The user's wallet signs the fixed Talos key message once. The SDK derives the spending key and note keys from that signature, in process. Never send the signature or the derived keys anywhere: whoever holds them can spend the notes.
- The shielded address (ts_...) is safe to share: it only lets others send notes to the user.

## Actions
1. Shield: `prepareShield` returns the wallet calls (an approve for USDC, then `transact`). The user's wallet sends them. The deposit amount and address are public.
2. Private send: `prepareSend` to a shielded address, then `relay`. No amounts or parties on chain.
3. Private swap: get a quote (`GET https://www.talosprivacy.xyz/api/swap/quote` or the swap_quote tool), choose a slippage, `prepareSwap`, then `relay`. The v4 pool, minOut and deadline are bound in the proof. Below minOut the whole transaction reverts and no note is spent.
4. Withdraw: `prepareWithdraw` to any address with the relayer's quoted fee (and an optional HYPE gas drop on USDC), then `relay`.
5. Disclose: `disclose` returns a file for one transaction; anyone checks it with `verifyDisclosure`, `POST https://www.talosprivacy.xyz/api/verify` or https://www.talosprivacy.xyz/app/verify.

## Good practice
- Quote the relayer fee right before proving (`GET https://www.talosprivacy.xyz/api/relay`); a proof carries its fee and cannot be changed after.
- Amounts that enter and leave are public. Suggest round amounts and some time between shielding and withdrawing.
- A pool accepts a proof made against any of its last 128 roots. If the pool moved too far, scan again and prove again.
- Exit fee: 0.25% of what leaves a pool (withdrawals, swaps, relayer fees). Shields pay none.
