TypeScript SDK
Flexo SDK is a developer-friendly toolkit that enables applications to integrate real-time blockchain analytics and AI-powered automation. It provides fast, secure API calls for interacting with Solana’s on-chain data.
Key Features of Flexo SDK
AI-powered blockchain analytics – Integrate token scoring, risk assessment, and liquidity tracking into any application.
Seamless application integration – Supports JavaScript, TypeScript, and other frameworks.
Efficient blockchain queries – Fetches on-chain Solana data without relying on centralized services.
How It Works
Install the SDK – Developers integrate Flexo into their project using
npm
oryarn
.Use Flexo API calls – Fetch real-time blockchain data and AI-driven insights with simple functions.
Build AI-driven applications – Automate token analysis, trading strategies, and risk monitoring.
1. Installation
npm install flexo-sdk
# or
yarn add flexo-sdk
2. Quick Start
import FlexoClient from 'flexo-sdk';
// Initialize the client
const client = new FlexoClient();
// Analyze a token
const analysis = await client.getToken('token-address');
console.log(`Token Score: ${analysis.data.score}`);
3. Token Analysis Example
import FlexoClient from 'flexo-sdk';
async function analyzeToken(address: string) {
const client = new FlexoClient();
const analysis = await client.getToken(address);
console.log(`
Token Analysis:
------------------------
Name: ${analysis.data.tokenName}
Score: ${analysis.data.score}/100
Market Cap: $${analysis.data.marketCap}
Risk Level: ${analysis.data.score < 50 ? 'High' : 'Low'}
LP Burned: ${analysis.data.auditRisk.lpBurned ? 'Yes' : 'No'}
`);
}
4. AI Agent Interaction
Flexo SDK also supports AI-powered agent interactions for deeper risk assessment.
import { FlexoClient, ChatMessage } from 'flexo-sdk';
async function chatWithAgent() {
const client = new FlexoClient();
const messages: ChatMessage[] = [
{ role: 'user', content: 'Analyze the risk factors for token ABC' }
];
const response = await client.chat('agent-id', messages);
console.log('AI Analysis:', response.data.response);
}
chatWithAgent();
Last updated