API SDKs & Libraries
Native SDKs for your favorite programming languages
🟨
JavaScript/TypeScript
v2.1.0Full TypeScript support with async/await
npm install @rootdigit/sdk
Quick Start Examples
JavaScript/TypeScript
import { RootDigitClient } from '@rootdigit/sdk';
const client = new RootDigitClient({
apiKey: 'YOUR_API_KEY'
});
// Get blockchain balance
const balance = await client.blockchain.getBalance({
address: '0x123...'
});
// Run AI prediction
const prediction = await client.ai.predict({
model: 'sentiment-analysis',
data: 'Your text here'
});Python
from rootdigit import Client
client = Client(api_key='YOUR_API_KEY')
# Get blockchain balance
balance = client.blockchain.get_balance(
address='0x123...'
)
# Run AI prediction
prediction = client.ai.predict(
model='sentiment-analysis',
data='Your text here'
)Postman Collection
Ready-to-use API collection for Postman
Can't find your language?
We're constantly adding support for new languages. You can still use our REST API directly with any HTTP client library.