HTTP API
JSON over HTTPS, no key. Amounts are strings in base units (USDC 6 decimals, HYPE 18).
GET /api/relay
The relayer's address and current fee quotes per pool and action, and the gas drop on USDC withdrawals.
curl -s https://<site>/api/relay
POST /api/relay
Sends a proved transaction. Body: { pool, proof, extData } as produced by the SDK. The relayer checks that the proof names it and pays at least its quote, simulates the call, sends it and returns the transaction hash.
GET /api/pool?asset=usdc|hype&from=<block>
The pool's events after a block: new commitments with their sealed notes and leaf indexes, open notes from swaps, nullifiers, shields and withdrawals. Everything here is public chain data; the SDK uses it to rebuild the tree and find your notes in your browser.
GET /api/stats
Per pool: address, notes in the tree, next leaf index and the amount shielded.
GET /api/swap/quote
A quote from the Uniswap v4 pool for a private swap: amount in, the exit fee, the expected output and the pool key the action will use.
curl -s 'https://<site>/api/swap/quote?from=hype&amount=1000000000000000000'
POST /api/verify
Body: a disclosure file. Returns ok and the result of every check against the chain.
Talos