Superbridge
Start typing to search...

Getting Started

SDK

A type-safe TypeScript wrapper around the Superbridge API

The Superbridge SDK is a type-safe TypeScript wrapper around the Superbridge API. It provides fully typed request and response objects generated from the OpenAPI spec.

Installation

npm install @superbridge/sdk

Quick Start

import { Superbridge } from "@superbridge/sdk";

const sb = new Superbridge({
  apiKey: "your-api-key",
});

const routes = await sb.getRoutes({
  fromChain: 1,
  toChain: 10,
  token: "0x...",
  amount: "1000000000000000000",
});

Learn More

The SDK mirrors the Superbridge API 1:1. For understanding bridging flows, response types, error handling, and transaction lifecycle, see the API Reference — everything there applies directly to the SDK.