JavaScript
SDK
Integrate DXBNK into your web application with our JavaScript SDK. Compatible with modern browsers and Node.js.
Detailed Steps
Total Time
SDK Size
Compatible
Integration Steps
Follow these 6 steps to integrate the JavaScript SDK
Paso 1: SDK Installation
Install the JavaScript SDK from npm
Overview
The DXBNK JavaScript SDK is the fastest way to integrate our services into any web application. It's compatible with modern browsers and Node.js.
Instructions
- 1Open your terminal in your project directory
- 2Run: npm install @dxbnk/js-sdk
- 3Or using yarn: yarn add @dxbnk/js-sdk
- 4Or using pnpm: pnpm add @dxbnk/js-sdk
- 5Verify installation in your package.json
Tips
- The SDK is compatible with ES6+ and CommonJS
- Includes TypeScript definitions automatically
- Works in modern browsers (Chrome 60+, Firefox 55+, Safari 12+)
- Also compatible with Node.js 14+
Code Example
# Instalación con npm
npm install @dxbnk/js-sdk
# Instalación con yarn
yarn add @dxbnk/js-sdk
# Instalación con pnpm
pnpm add @dxbnk/js-sdk
# Verificar instalación
npm list @dxbnk/js-sdkPaso 2: Initial Configuration
Configure the SDK with your API key
Paso 3: User Authentication
Implement login and registration
Paso 4: Wallet Operations
Create and manage wallets
Paso 5: Send Transactions
Perform cryptocurrency transfers
Paso 6: Event Handling
Listen to real-time events
SDK Features
Everything you need to build DeFi applications with JavaScript
Main Methods
Most used SDK methods
Auth Methods
Authentication and user management
dxbnk.auth.login(credentials)
dxbnk.auth.register(userData)
dxbnk.auth.logout()
dxbnk.auth.isAuthenticated()Wallet Methods
Create and manage wallets
dxbnk.wallets.create(options)
dxbnk.wallets.list()
dxbnk.wallets.get(id)
dxbnk.wallets.getBalance(id)Transaction Methods
Send and query transactions
dxbnk.transactions.send(data)
dxbnk.transactions.get(hash)
dxbnk.transactions.list(filters)
dxbnk.transactions.validateAddress()Event Methods
Subscribe to real-time events
dxbnk.on('event', handler)
dxbnk.once('event', handler)
dxbnk.off('event', handler)
dxbnk.removeAllListeners()Need help with the SDK?
Check our complete API documentation or contact our team for technical support.