Skip to main content

📦 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.

ModuleMethodsDescription
auth8User authentication, mobile 2FA, password reset
twofa6Two-Factor Authentication setup and verification

✅ Blockchain & Crypto (7 modules, 66+ methods)

Next-generation blockchain and cryptocurrency operations.

ModuleMethodsDescription
cryptoWallet14+ABSK AI Blockchain Starter Kit with conversational AI
onchain20Direct blockchain transaction execution and logging
crosschain9Multi-chain transfers (Sepolia, Amoy, Neon)
cardano9Cardano blockchain operations and USDC management
xrpl7XRPL integration, trustlines, and issued currencies
bridge5Cross-chain wallet bridging and VA management
neon2Neon blockchain authentication and balance checking

✅ Financial Services (11 modules, 76 methods)

Payment processing and financial service modules.

ModuleMethodsDescription
marketplace5AI conversational commerce & multi-marketplace shopping with USDC payments
mcp10AI-powered shopping and cryptocurrency payments
xendit22Payment gateway operations for Indonesia market
indodax14Crypto exchange & IDR-USDC conversion with automated trading
traditional_transaction11Transaction management, topup, withdraw, transfers
traditional_wallet8Traditional wallet operations and management
client6Client registration and management
ntcp6Recipient management and batch transfers
testnet4Testnet development tools and faucets
visa6Virtual Visa card management
fx3Foreign exchange and currency conversion
stableX4Cross-chain USDC operations

✅ Third-Party Integrations (8 modules, 91 methods)

External service integrations and verifications.

ModuleMethodsDescription
xendit21Indonesian payment gateway - withdrawals, VAs, reconciliation
twitter16Twitter bot verification, rewards, and webhook management
indodax14Crypto conversion & trading - IDR to USDC automated conversion
idrx12IDR onramp/offramp gateway - IDRX/USDC conversion via BRDZ System
users10User profile management, countries, TOS acceptance
privy8Privy authentication and wallet linking
ekyc7Sumsub identity verification (eKYC/eKYB)
plaid5Banking integration and ACH transfers

✅ Management & Administration (5 modules, 18 methods)

Administrative and management functions.

ModuleMethodsDescription
admin4Administrative user management and KYC approval
apikey3API key generation and management

Total: 25 Modules, 180+ Methods

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

Getting Started

  1. Install SDK: npm install anantla_sdk@latest
  2. Get API Key: BRDZ Dashboard
  3. Choose Module: Pick the module that fits your use case
  4. 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