@queryflow-402/sdk
The official Node.js/TypeScript SDK for QueryFlow โ a pay-per-query AI insights platform powered by the x402 payment protocol on Avalanche.
โจ Features
- ๐ง AI-Powered Insights โ Market sentiment, price predictions, risk analysis, social trends
- ๐ธ Pay-Per-Query โ No subscriptions, pay only for what you use
- ๐ Wallet-Based Auth โ No API keys, just your crypto wallet
- โก Simple Integration โ 3 lines of code to get started
- ๐ Dual Payment Modes โ Signature (dev) or Real AVAX (production)
Quick Example
import { QueryFlowClient } from "@queryflow-402/sdk";
const client = new QueryFlowClient(process.env.PRIVATE_KEY);
const result = await client.market({
assets: ["BTC", "ETH"],
timeframe: "24h",
});
console.log(`Sentiment: ${result.sentiment.score}/100`);
Next Steps
- Getting Started โ Install and make your first query
- Core Concepts โ Understand x402 and pay-per-query
- API Reference โ Full method documentation