
Everything you need to integrate Sovalium AI intelligence into your Solana applications.
Install the Sovalium SDK via npm or yarn:
npm install @sovalium/sdkOr using yarn:
yarn add @sovalium/sdkInitialize the client with your API key:
import { Sovalium } from '@sovalium/sdk'
const client = new Sovalium({
apiKey: process.env.SOVALIUM_API_KEY,
network: 'mainnet-beta' // or 'devnet'
})
// Now you're ready to use the API
const tokens = await client.tokens.list()
console.log(tokens)All API requests require authentication using an API key. Include your key in the request headers:
curl https://api.sovalium.com/v1/tokens \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Security: Never expose your API key in client-side code. Always use environment variables and server-side requests.
https://api.sovalium.com/v1/tokensList all tracked Solana tokens
/tokens/:addressGet detailed token information
/wallets/:addressAnalyze wallet holdings and activity
/ai/insights/:addressGet AI-generated market insights
/alertsCreate custom price or volume alerts
// Get token details
const response = await fetch(
'https://api.sovalium.com/v1/tokens/So11111111111111111111111111111111111111112',
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
}
)
const token = await response.json()
console.log(token)Connect to WebSocket streams for live price updates, whale alerts, and market events:
import { Sovalium } from '@sovalium/sdk'
const client = new Sovalium({ apiKey: 'YOUR_API_KEY' })
// Subscribe to token price updates
client.stream.subscribeToPrices(['SOL', 'USDC'], (update) => {
console.log(`${update.symbol}: $${update.price}`)
})
// Subscribe to whale movements
client.stream.subscribeToWhaleAlerts((alert) => {
console.log('Whale detected:', alert)
})
// Subscribe to AI insights
client.stream.subscribeToAIInsights((insight) => {
console.log('New insight:', insight.summary)
})The TypeScript SDK provides a complete interface to all Sovalium features:
import { Sovalium } from '@sovalium/sdk'
const client = new Sovalium({ apiKey: 'YOUR_API_KEY' })
// Token operations
const tokens = await client.tokens.list()
const token = await client.tokens.get('SOL')
const trending = await client.tokens.trending()
// Wallet analysis
const wallet = await client.wallets.analyze('ADDRESS')
const holdings = await client.wallets.holdings('ADDRESS')
// AI insights
const insights = await client.ai.analyze('SOL')
const summary = await client.ai.summarize(['SOL', 'USDC'])
// Alerts
await client.alerts.create({
type: 'price',
token: 'SOL',
condition: 'above',
value: 100
})
// Analytics
const analytics = await client.analytics.tokenMetrics('SOL')
const liquidity = await client.analytics.liquidityFlow('SOL')100
requests/hour
1,000
requests/hour
Custom
unlimited
Rate limit headers are included in every response. Monitor your usage to avoid throttling.
200OK
Request successful
400Bad Request
Invalid parameters or malformed request
401Unauthorized
Missing or invalid API key
429Too Many Requests
Rate limit exceeded
500Internal Server Error
Something went wrong on our end
{
"error": {
"code": "INVALID_TOKEN",
"message": "Token address is invalid or not found",
"details": {
"address": "invalid_address"
}
}
}