
Core Capabilities
- Direct Chain Access - RPC calls, wallet integration, and transaction management.
- Indexed Data & Metrics - Access Glacier Data API & Metrics API with type safety.
- Interchain Messaging - Build cross-L1 applications with ICM/Teleporter.
Developer Preview: This suite of SDKs is currently in beta and is subject to change. We’d love to hear about your experience! Share your feedback here. Use in production at your own risk.
Which SDK Should I Use?
Choose the right SDK based on your specific needs:SDK Package | Description |
---|---|
@avalanche-sdk/client | Direct blockchain interaction - transactions, wallets, RPC calls |
@avalanche-sdk/chainkit | Complete suite: Data, Metrics and Webhooks API |
@avalanche-sdk/interchain | Send messages between Avalanche L1s using ICM/Teleporter |
Quick Start
- npm
- yarn
- pnpm
Basic Example
Available SDKs
Client SDK
The main Avalanche client SDK for interacting with Avalanche nodes and building blockchain applications. Key Features:- Complete API coverage for P-Chain, X-Chain, and C-Chain.
- Full viem compatibility - anything you can do with viem works here.
- TypeScript-first design with full type safety.
- Smart contract interactions with first-class APIs.
- Wallet integration and transaction management.
- Cross-chain transfers between X, P and C chains.
- Retrieve balances and UTXOs for addresses
- Build, sign, and issue transactions to any chain
- Add validators and delegators
- Create subnets and blockchains.
- Convert subnets to L1s.
Get Started with Client SDK
Learn how to integrate blockchain functionality into your application
ChainKit SDK
Combined SDK with full typed coverage of Avalanche Data (Glacier) and Metrics APIs. Key Features:- Full endpoint coverage for Glacier Data API and Metrics API
- Strongly-typed models with automatic TypeScript inference
- Built-in pagination helpers and automatic retries/backoff
- High-level helpers for transactions, blocks, addresses, tokens, NFTs
- Metrics insights including network health, validator stats, throughput
- Webhook support with payload shapes and signature verification
- Glacier API: https://glacier-api.avax.network/api
- Metrics API: https://metrics.avax.network/api
Get Started with ChainKit SDK
Access comprehensive blockchain data and analytics
Interchain SDK
SDK for building cross-L1 applications and bridges. Key Features:- Type-safe ICM client for sending cross-chain messages
- Seamless wallet integration with existing wallet clients
- Built-in support for Avalanche C-Chain and custom subnets
- Message tracking and delivery confirmation
- Gas estimation for cross-chain operations
- Cross-chain token bridges
- Multi-L1 governance systems
- Interchain data oracles
- Cross-subnet liquidity pools
Get Started with Interchain SDK
Build powerful cross-chain applications