Skip to main content
The TypeScript SDK is WIP. The methods below are the planned surface. Each method maps to one or more endpoints in the Relayer HTTP API, those endpoints are live today and you can integrate against them directly.

SDK ↔ API mapping

Two services back the SDK: 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:
  1. Signs and sends BridgeIntentV2.createIntent with the public fields (tokenIn, tokenOut, amountIn, minAmountOut, reward, destChainId, auctionDuration)
  2. Fetches the relayer’s ECIES public key, encrypts { recipients, amounts }, and posts to POST /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.
The raw-API variants (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

Wraps 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.