Integration4 min read
SDK Overview
Overview of NEXO SDKs for different programming languages
Available SDKs
NEXO provides official SDKs for popular programming languages to make integration as simple as possible.
TypeScript / JavaScript
bash
npm install @nexo/sdk @solana/web3.jsFull-featured SDK for Node.js and browser environments. Includes TypeScript definitions.
Python
bash
pip install nexo-sdkPython SDK for backend integrations and trading bots.
Rust (Coming Soon)
Native Rust SDK for high-performance applications.
SDK Features
- •Type-safe API calls
- •Automatic retry and error handling
- •WebSocket integration
- •Transaction building helpers
- •Wallet adapter support
Quick Start
typescript
import { NexoClient } from '@nexo/sdk';
const client = new NexoClient({
apiKey: 'YOUR_API_KEY'
});
// Execute a protected swap
const result = await client.swap({
inputMint: 'So11111111111111111111111111111111111111112', // SOL
outputMint: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', // USDC
amount: 1_000_000_000 // 1 SOL in lamports
});