SDK ↔ API mapping
Two services back the SDK:- Relayer at
https://relayer.tachyon.pe, API reference - TWAP service at
https://twap.tachyon.pe, API reference
Legend: ✅ live now · 🟡 SDK convenience over existing surface · 🔴 planned, not yet implemented
Initialization
HealthResponse shape matches GET /health (API ref).
User & viewing key
WIP. Selective-disclosure exports (
exportRecord, exportRecords) are planned. Today, derive the stealth key via deriveStealthKey and produce a record client-side using the keys.Intent, single
submit does both halves of the real two-step flow:
- Signs and sends
BridgeIntentV2.createIntentwith the public fields (tokenIn,tokenOut,amountIn,minAmountOut,reward,destChainId,auctionDuration) - Fetches the relayer’s ECIES public key, encrypts
{ recipients, amounts }, and posts toPOST /store-recipients
status polls GET /intent-details/:intentId. subscribe is a polling helper (default 3 s) until webhooks ship.
The lower-level variants are exposed for integrations that only need one half:
Intent, batch (planned)
Planned. Today, payroll loops
submit over each contributor.TWAP
Base URL:https://twap.tachyon.pe. See the full TWAP API reference for request/response shapes.
create, cancel) are available today over HTTP. The buildAndSubmit helper is a planned SDK convenience.
Recipient
relay wraps POST /recipient/relay-proxy for gasless sweeps/spends from a stealth Safe. listIncoming is a convenience over GET /recipient/addresses plus per-address chain queries.
Routes & solvers
POST /get-routes. Returns supported chain pairs and registered solvers.
Webhooks (planned)
Planned. Until webhooks ship, poll
GET /intent-details/:intentId (typically every 2–5 seconds while an intent is live).Types
Relayer HTTP API
Intent lifecycle, stealth addresses, sweeps.
TWAP HTTP API
TWAP order creation, status, cancellation.