- Wallet Management - Create, import, and manage Bitcoin-compatible wallets
- Contract Deployment - Deploy WASM smart contracts
- Contract Interaction - Call contract functions and query state
- Vault Operations - Manage deposits and withdrawals
- Event Subscriptions - Real-time event monitoring
- Challenge System - BitVM2 fraud proof interactions
Installation
- TypeScript
- Rust
- Node.js 18+
- TypeScript 5.0+ (recommended)
Quick Example
- TypeScript
- Rust
SDK Components
NexusClient
Main client for RPC communication with failover support
Wallet
Bitcoin-compatible wallet with P2TR addresses
ContractBuilder
Build and validate contracts before deployment
EventListener
Subscribe to real-time contract events
Configuration Options
Error Handling
The SDK uses typed errors for better error handling:- TypeScript
- Rust