Skip to main content

Align SDK

The unofficial TypeScript/JavaScript SDK for the AlignLab API. Build production-ready payment infrastructure with comprehensive type safety, validation, and error handling.
This is an unofficial SDK. For the official API documentation, visit docs.alignlabs.dev.

Why Align SDK?

Type-Safe

Full TypeScript support with comprehensive type definitions. Catch errors at compile time, not runtime.

Validated Requests

Built-in request validation with Zod schemas. Invalid data is caught before hitting the API.

Secure Webhooks

HMAC-SHA256 webhook signature verification out of the box. Prevent replay attacks and tampering.

Automatic Retry

Built-in retry mechanism with exponential backoff for transient network errors.

What Can You Build?

Allow users to purchase cryptocurrency with fiat currency. Support for ACH, wire transfers, SEPA, and more.
Enable users to convert cryptocurrency back to fiat currency and withdraw to their bank accounts.
Move assets seamlessly between different blockchain networks.
Create dedicated virtual bank accounts for seamless fiat deposits.

Supported Networks & Tokens

NetworkChain IDStatus
Ethereum1Mainnet
Polygon137Mainnet
Base8453Mainnet
Arbitrum42161Mainnet
Solana-Mainnet
Tron-Mainnet

Quick Example

Here’s a complete example of onboarding a user and processing their first deposit:

Next Steps

Installation

Install the SDK with your preferred package manager

Quick Start

Get up and running in 5 minutes

API Reference

Explore the complete API documentation