Skip to main content
The official TypeScript SDK provides a fully typed, promise-based client for the Hypermid API. Ships as a dual ESM + CJS build — works in modern Node.js (18+), browsers, Bun, Deno, Next.js, Vite, AWS Lambda, and edge runtimes.

Installation

Configuration

Configuration options

Methods

Chains & tokens

Quote / Execute / Status

Balances

getBalances auto-detects the address ecosystem (EVM, Solana, Bitcoin, NEAR, Sui, Tron) and returns priced holdings plus dust classification.

NEAR Intents deposits

For non-EVM destinations, execute returns a deposit address. After the user sends funds:

Webhooks

Verify incoming webhook deliveries:

Fiat on-ramp (RampNow)

Partner endpoints (require API key)

SuperSwap inbound receiver

For SuperSwap V2 inbound deposits (PulseChain-side outputs):

Telemetry

ExecuteSwap helper

For the full swap lifecycle in one call, use executeSwap (a top-level function, not a class method). It runs execute, calls back to you for signing, then polls until completion:
If you only need polling, use the wait helpers directly:
For dry-running quotes without signing, use quoteAndPrepare(client, params).

Type guards

Use these to branch on the provider/mode of an ExecuteResponse without checking response shape manually:
And on statuses:
Chain helpers:
For the full chain registry (CHAIN_REGISTRY, resolveChain, toLifiChainId, etc.), see the chains module exports.

Error handling

TypeScript types

All request/response types are exported from the package root:

End-to-end example

A complete EVM swap from Ethereum to Arbitrum, anonymous tier: