██╗ ██╗███████╗██╗██╗ ██║ ██║██╔════╝██║██║ ██║ ██║█████╗ ██║██║ ╚██╗ ██╔╝██╔══╝ ██║██║ ╚████╔╝ ███████╗██║███████╗ ╚═══╝ ╚══════╝╚═╝╚══════╝
AI agents are leaking your strategy on-chain.
Every data purchase, every signal, every API call — fully visible.
Veil routes payments through MagicBlock's Private Ephemeral Rollup so competitors see nothing.
AI agents are now autonomous economic actors. But every payment they make is fully public on Solana. Anyone watching the chain can surveil your entire strategy.
Competitors see exactly which data APIs, signal providers, and services your agent is paying for — and copy your sources.
Payment amounts reveal how much you value each signal. Competitors can infer your conviction and position sizing.
How often you buy data reveals your trading cadence. Attackers can front-run your agent's predictable behavior.
Agent signs a challenge string via GET /challenge, exchanges it for a bearer token via POST /login. Session keys are ephemeral and rotated after every payment cycle.
USDC moves from Solana base chain into MagicBlock's TEE-backed PER via POST /deposit. Inside the rollup, all state is shielded from external observers.
POST /transfer with visibility: private — recipient, amount, and memo never appear on base chain. The API returns an unsigned tx, signed locally by the agent keypair.
The signed tx hash becomes a payment proof token. The data API validates x-payment-proof and returns the signal. No payment, no data — gating works without revealing the payer.
After each cycle, Veil generates a fresh ephemeral keypair and re-authenticates under a new identity. Chain observers see disconnected sessions — impossible to link as the same agent.
Clone the repo, start the mock API, run the agent. Full demo in under 60 seconds — no mainnet funds required.