Install
- pnpm
- npm
- yarn
Features
- Type-safe HTTP client with automatic retries and comprehensive error handling
- Safe module for Gnosis Safe operations and address resolution
- Strategy module for vault data, yields, and strategy information
- Decimal.js integration for precise financial calculations without floating-point errors
- Cross-chain utilities for LiFi, Garden, and other bridge integrations
- Comprehensive error handling with user-friendly error messages
Quick Start
Safe Operations
Resolve Safe Address
Current Balance for a Vault
Strategy Operations
Get Available Integrations and Strategies
Get Vault Yields
Get Integration TVL
Cross-Chain Utilities
LiFi Integration (catalog + route)
Garden Integration (catalog + route)
Error Handling
The SDK provides comprehensive error handling with user-friendly messages:Decimal.js Integration
All financial calculations use Decimal.js for precision:Configuration
Client Configuration
Environment Variables
Types and Interfaces
Core Types
Best Practices
1. Error Handling
Always wrap API calls in try-catch blocks and handle SdkError specifically:2. Amount Precision
Always use Decimal.js for financial calculations:3. Type Safety
Leverage TypeScript for type safety:References
- Repository: GitHub
- NPM Package: @blend-money/sdk-core
- API Reference: Interactive Playground
- Type Definitions: @blend-money/sdk-types