KOLPLAY SDK
Start building in minutes with our official TypeScript SDK. Isomorphic, type-safe, and optimized for speed.
Installation
npm install @kolplayorg/sdkType Safe
Full TypeScript support for all request/response objects.
Fast
Optimized Axios client with automatic retries and timeouts.
Isomorphic
Works seamlessly in Node.js and Browser environments.
Universal Usage
import { KolplayClient } from '@kolplayorg/sdk';
const client = new KolplayClient('YOUR_API_KEY');
// OR initialize with JWT for AI Agents/Frontends
const agentClient = new KolplayClient({ jwt: 'YOUR_JWT_TOKEN' });
// Fetch token metrics
const metrics = await client.getTokenMetrics('So111...');
console.log('Price:', metrics.price);
// Execute a simulation trade
const trade = await client.executeSwap({
mint: 'So111...',
amount: 0.1,
tradeType: 'buy',
isSimulation: true
});Module Reference
Tokens
Core client modulesclient.getTokenMetrics()
client.getTokenMindmap()
client.predictTokens()
KOLs
Core client modulesclient.getFeaturedKols()
client.getLeaderboard()
Trades
Core client modulesclient.executeSwap()
client.getTradeHistory()
User
Core client modulesclient.getUserStats()
client.getUserTrades()

