JavaScript
SDK

Integrate DXBNK into your web application with our JavaScript SDK. Compatible with modern browsers and Node.js.

6

Detailed Steps

35min

Total Time

~50KB

SDK Size

ES6+

Compatible

Integration Steps

Follow these 6 steps to integrate the JavaScript SDK

Paso 1: SDK Installation

Install the JavaScript SDK from npm

2 min
Easy

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

  1. 1Open your terminal in your project directory
  2. 2Run: npm install @dxbnk/js-sdk
  3. 3Or using yarn: yarn add @dxbnk/js-sdk
  4. 4Or using pnpm: pnpm add @dxbnk/js-sdk
  5. 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-sdk

Paso 2: Initial Configuration

Configure the SDK with your API key

3 min
Easy

Paso 3: User Authentication

Implement login and registration

5 min
Easy

Paso 4: Wallet Operations

Create and manage wallets

8 min
Intermediate

Paso 5: Send Transactions

Perform cryptocurrency transfers

10 min
Intermediate

Paso 6: Event Handling

Listen to real-time events

7 min
Intermediate

SDK Features

Everything you need to build DeFi applications with JavaScript

Lightweight and fast (~50KB minified)
TypeScript compatible
Promise and async/await support
Automatic error handling
WebSocket for real-time updates
Built-in address validation
Gas and fee estimation
Compatible with browsers and Node.js

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.

View API Reference