Overview
The Solar Sentra SDK provides a type-safe interface for interacting with the Solar Sentra API. Available for TypeScript (Node.js, Browser) and Python 3.9+.Configuration Options
path=null start=null
| Parameter | Type | Default | Description |
|---|---|---|---|
| apiKey | string | Required | Your API authentication key |
| network | string | mainnet-beta | Solana network to connect |
| rpcEndpoint | string | Auto | Custom RPC endpoint URL |
| timeout | number | 30000 | Request timeout in milliseconds |
| retryAttempts | number | 3 | Number of retry attempts on failure |
| debug | boolean | false | Enable debug logging |
Wallet Module
wallet.track(address: string)
Begin tracking a Solana wallet address.
Parameters:
address- Valid Solana wallet address (base58 encoded)
path=null start=null
wallet.getTransactions(address, options)
Retrieve transaction history for a wallet.
Options:
path=null start=null
wallet.getTokenAccounts(address)
Get all SPL token accounts owned by the wallet.
Returns:
path=null start=null
Analytics Module
analytics.getPrediction(address)
Get AI-powered predictions for wallet behavior.
Returns:
path=null start=null
analytics.getAnomalies(address, timeRange)
Detect anomalous transaction patterns.
WebSocket Streaming
Real-time wallet monitoring via WebSocket connections.path=null start=null
Rate Limits
| Tier | Requests/Min | WebSocket Connections | Historical Data |
|---|---|---|---|
| Free | 100 | 5 | 30 days |
| Developer | 500 | 25 | 90 days |
| Pro | 2000 | 100 | 1 year |
| Enterprise | Unlimited | Unlimited | 5 years |
Python SDK
path=null start=null
Error Codes
| Code | Description | Action |
|---|---|---|
| 1001 | Invalid API key | Check credentials |
| 1002 | Rate limit exceeded | Implement backoff |
| 1003 | Invalid wallet address | Validate input |
| 2001 | Network error | Retry request |
| 2002 | Timeout | Increase timeout value |
| 3001 | Internal server error | Contact support |
All SDK methods return Promises in TypeScript and coroutines in Python async contexts.

