SDK & Client Libraries
Typed clients for integrating TXH quickly.
Installation
- `npm install @txh/sdk` for Node.js and TypeScript projects.
- `pip install txh-sdk` for Python projects.
TypeScript Quickstart
import { createTxhClient } from "@txh/sdk";
const client = createTxhClient({ token: process.env.TXH_API_TOKEN! });
const data = await client.market.getAggregated({ limit: 100 });
console.log(data.assets[0]);Python Quickstart
from txh import TxhClient
client = TxhClient(token="YOUR_TOKEN")
flows = client.onchain.get_flows(exchange="binance", limit=50)
print(flows[0]["asset"], flows[0]["amount"])