You need an API Key to use the Chainrails SDK. You can get one by signing up on our dashboard or contacting us at [email protected].
Overview
The Chainrails SDK (@chainrails/sdk) is a TypeScript SDK that provides a simple, type-safe interface for interacting with the Chainrails API. It handles authentication, request formatting, and error handling automatically, allowing you to focus on building your application.
Installation
- npm
- pnpm
- yarn
- bun
SDK Modules
The SDK is organized into the following modules:Intents
Create and manage cross-chain transfer intents, track payment status, and retrieve intent information.Router
Find optimal routes and analyze bridge availability for cross-chain transfers.Quotes
Get real-time quotes for cross-chain transfers from various bridge providers.Chains
Retrieve information about supported blockchain networks and tokens.Client
Retrieve authenticated client information.Language Support
Authentication
The SDK uses API key-based authentication. Configure your API key once at startup:Authorization: Bearer header.

