Skip to content
VerifiedXVerifiedX Docs
verifiedx.io
verifiedx.io

Javascript SDK

Welcome to the VerifiedX Web SDK documentation. This SDK provides a unified interface for interacting with both the VerifiedX blockchain and Bitcoin network, enabling powerful cross-chain applications.

The VerifiedX Web SDK is designed with simplicity and power in mind:

import { VfxClient, btc, Network } from 'vfx-web-sdk';
// VerifiedX operations
const vfxClient = new VfxClient(Network.Testnet);
// Bitcoin operations
const btcClient = new btc.BtcClient('testnet');
  • Native VFX Operations: Full support for VerifiedX blockchain transactions, domain management, and address operations
  • Bitcoin Integration: Complete Bitcoin functionality including wallet management, transactions, and mempool interaction
  • Cross-Chain Compatibility: Seamless integration between VFX and Bitcoin operations
  • Fungible Tokens (VFX20): Deploy, mint, transfer, burn, pause, ban and vote
  • External Signing: Sign every transaction with an HSM, KMS or MPC key the SDK never sees
  • Reserve Accounts: Time-delayed vault sends that can be called back, with key recovery
  • TypeScript First: Full type safety with comprehensive definitions
  • Universal Compatibility: Works in Node.js, browsers, and modern bundlers
  • Multiple Build Targets: CommonJS, ES Modules, and browser-ready bundles
  • Consistent API: Similar patterns across VFX and Bitcoin operations
Terminal window
npm install vfx-web-sdk
import { VfxClient, btc, Network } from 'vfx-web-sdk';
function quickStart() {
// Initialize clients
const vfxClient = new VfxClient(Network.Testnet);
const btcClient = new btc.BtcClient('testnet');
// Generate VFX wallet
const vfxPrivateKey = vfxClient.generatePrivateKey();
const vfxAddress = vfxClient.addressFromPrivate(vfxPrivateKey);
// Generate Bitcoin wallet
const btcKeypair = btcClient.generatePrivateKey();
console.log('VFX Address:', vfxAddress);
console.log('BTC Address:', btcKeypair.address);
}

This documentation is organized into several sections:

Ready to start building? Choose your path:

  1. New to VerifiedX? Start with VFX Basics
  2. Bitcoin Developer? Jump to Bitcoin Basics
  3. Building Cross-Chain? Explore Cross-Chain Guide
  4. Issuing a token? Read Fungible Tokens and External Signing
  5. Need Examples? Browse Complete Applications

Let’s build the future of cross-chain applications together!