📦 BRDZ SDK Reference
Welcome to the BRDZ SDK Reference! This comprehensive guide covers all 25 modules and 180+ methods available in the BRDZ SDK for seamless integration with BRDZ APIs.
Installation
npm install anantla_sdk@latest
Quick Setup
import brdzSDK from 'anantla_sdk';
// or const brdzSDK = require('anantla_sdk');
// Configure SDK
brdzSDK.config.setBaseUrl('https://api.brdz.link/api');
brdzSDK.config.setApiKey('YOUR_API_KEY');
brdzSDK.config.setToken('YOUR_JWT_TOKEN'); // After login
🎉 Complete SDK Reference
All 25 modules of the BRDZ SDK with accurate method counts:
✅ Core Authentication (2 modules, 14 methods)
Essential authentication and security modules.
| Module | Methods | Description |
|---|---|---|
auth | 8 | User authentication, mobile 2FA, password reset |
twofa | 6 | Two-Factor Authentication setup and verification |
✅ Blockchain & Crypto (7 modules, 66+ methods)
Next-generation blockchain and cryptocurrency operations.
| Module | Methods | Description |
|---|---|---|
cryptoWallet | 14+ | ABSK AI Blockchain Starter Kit with conversational AI |
onchain | 20 | Direct blockchain transaction execution and logging |
crosschain | 9 | Multi-chain transfers (Sepolia, Amoy, Neon) |
cardano | 9 | Cardano blockchain operations and USDC management |
xrpl | 7 | XRPL integration, trustlines, and issued currencies |
bridge | 5 | Cross-chain wallet bridging and VA management |
neon | 2 | Neon blockchain authentication and balance checking |
✅ Financial Services (11 modules, 76 methods)
Payment processing and financial service modules.
| Module | Methods | Description |
|---|---|---|
marketplace | 5 | AI conversational commerce & multi-marketplace shopping with USDC payments |
mcp | 10 | AI-powered shopping and cryptocurrency payments |
xendit | 22 | Payment gateway operations for Indonesia market |
indodax | 14 | Crypto exchange & IDR-USDC conversion with automated trading |
traditional_transaction | 11 | Transaction management, topup, withdraw, transfers |
traditional_wallet | 8 | Traditional wallet operations and management |
client | 6 | Client registration and management |
ntcp | 6 | Recipient management and batch transfers |
testnet | 4 | Testnet development tools and faucets |
visa | 6 | Virtual Visa card management |
fx | 3 | Foreign exchange and currency conversion |
stableX | 4 | Cross-chain USDC operations |
✅ Third-Party Integrations (8 modules, 91 methods)
External service integrations and verifications.
| Module | Methods | Description |
|---|---|---|
xendit | 21 | Indonesian payment gateway - withdrawals, VAs, reconciliation |
twitter | 16 | Twitter bot verification, rewards, and webhook management |
indodax | 14 | Crypto conversion & trading - IDR to USDC automated conversion |
idrx | 12 | IDR onramp/offramp gateway - IDRX/USDC conversion via BRDZ System |
users | 10 | User profile management, countries, TOS acceptance |
privy | 8 | Privy authentication and wallet linking |
ekyc | 7 | Sumsub identity verification (eKYC/eKYB) |
plaid | 5 | Banking integration and ACH transfers |
✅ Management & Administration (5 modules, 18 methods)
Administrative and management functions.
| Module | Methods | Description |
|---|---|---|
admin | 4 | Administrative user management and KYC approval |
apikey | 3 | API key generation and management |
Total: 25 Modules, 180+ Methods
🚀 Popular Use Cases
Authentication Flow
// Traditional login
const loginResult = await brdzSDK.auth.loginUser('user@example.com', 'password');
// Setup 2FA
const qrCode = await brdzSDK.twofa.setup();
await brdzSDK.twofa.enable('123456'); // Code from authenticator app
// Login with 2FA
if (loginResult.requires_2fa) {
const completeLogin = await brdzSDK.auth.completeLoginWith2FA(
loginResult.user_id,
'123456'
);
}
AI-Powered Crypto Wallet
// Natural language wallet operations
const result = await brdzSDK.cryptoWallet.processAIIntent({
user_input: "Create a new trading wallet and add Sepolia testnet",
user_id: 123
});
// Check AI service health
const health = await brdzSDK.cryptoWallet.checkAIHealth();
AI Commerce Shopping
// AI-powered shopping flow
const intent = await brdzSDK.mcp.step1_detectIntent({
prompt: "Buy iPhone from tokopedia.com/iphone-15"
});
const product = await brdzSDK.mcp.step2_parseProduct({
url: intent.detected_url
});
const order = await brdzSDK.mcp.createOrder({
product: product.product,
pricing: product.pricing,
recipient: { name: "John", address: "Jakarta" }
});
Cross-Chain Operations
// Transfer USDC across chains
const transfer = await brdzSDK.crosschain.initiateTransfer({
user_id: 123,
amount: "100",
from_chain: "sepolia",
to_chain: "amoy",
token: "USDC"
});
// Check balance on specific chain
const balance = await brdzSDK.crosschain.getUSDCBalance("sepolia", "0x...");
📚 Module Categories
By Complexity
- Beginner:
auth,twofa,users,wallet - Intermediate:
mcp,transactions,fx,plaid - Advanced:
cryptoWallet,crosschain,onchain,bridge
By Use Case
- E-commerce:
mcp,fx,visa,stableX - DeFi/Crypto:
cryptoWallet,crosschain,onchain,neon - Traditional Finance:
wallet,transactions,plaid,visa - Identity/KYC:
ekyc,auth,twofa,users
🔧 SDK Configuration
Environment Setup
// Development
brdzSDK.config.setBaseUrl('https://api.brdz.link/api');
brdzSDK.config.setApiKey(process.env.BRDZ_API_KEY);
// Production
brdzSDK.config.setBaseUrl('https://api.brdz.link/api');
brdzSDK.config.setApiKey(process.env.BRDZ_PRODUCTION_API_KEY);
Error Handling
try {
const result = await brdzSDK.auth.loginUser(email, password);
} catch (error) {
if (error.message.includes('API key is missing')) {
console.error('Configure API key first');
} else if (error.message.includes('invalid credentials')) {
console.error('Check username/password');
}
}
🛟 Support & Resources
Documentation
- API Reference: Direct HTTP endpoint documentation
- SDK Reference: Module-by-module SDK guides
- Examples: Real-world integration examples
- TypeScript: Full TypeScript support included
Community
- 📧 Email: contact@anantla.com
- 🌐 Website: anantla.org
- 📚 API Docs: API Reference
Getting Started
- Install SDK:
npm install anantla_sdk@latest - Get API Key: BRDZ Dashboard
- Choose Module: Pick the module that fits your use case
- Follow Examples: Use the code examples in each module guide
Pro Tips
- Always set your API key before making requests
- Use TypeScript for better development experience
- Check AI health before using cryptoWallet AI features
- Enable 2FA for enhanced security
- Use testnet module for development and testing
Version Info
Current SDK Version: v1.1.3 (r series update)
Last Updated: September, 2025
Node.js Support: 16.x, 18.x, 20.x+
TypeScript: Full support included