ts-sdk

Reference Documentation

Complete technical specifications and API documentation for the BSV TypeScript SDK.

Standards and Interfaces

BRC-100 Wallet Interface

Core Classes

Transaction Class

PrivateKey/PublicKey Classes

Transaction Signatures Reference

Script Classes

OP Codes Reference

Module Reference

Primitives Module

Transaction Module

Wallet Module

Configuration Reference

SDK Configuration Options

interface SDKConfig {
  network: 'mainnet' | 'testnet' | 'regtest'
  arc: ARCConfig
  fees: FeeConfig
  security: SecurityConfig
}

ARC Configuration

Network Configuration

Error Reference

Error Codes and Messages

Debugging Guide

Swagger

BRC-100 defines a Unified, Vendor-Neutral, Unchanging, and Open BSV Blockchain Standard Wallet-to-Application Interface which is implemented in this library within the WalletClient class. The API is laid out here as a swagger openapi document to offer a fast-track to understanding the interface which is implemented across multiple substrates. The JSON api is generally considered a developer friendly introduction to the WalletClient, where an binary equivalent ABI may be preferred for production use cases.