Skip to content

BSV Ruby SDK

Ruby SDK for the BSV Blockchain. Part of the official BSV SDK family alongside Go, TypeScript, and Python.

Installation

Add to your Gemfile:

gem 'bsv-sdk'

Or install directly:

gem install bsv-sdk

Modules

The SDK is organised into three top-level modules:

  • Primitives — keys, curves, hashing, encryption, HD keys, mnemonics
  • Script — script parsing, opcodes, templates, interpreter
  • Transaction — building, signing, BEEF serialisation, merkle proofs

Companion gems

  • bsv-wallet — BRC-100 wallet interface with BSV::Wallet::Client, storage adapters, and broadcast queue
  • bsv-wallet-postgres — PostgreSQL storage adapter and async broadcast queue for production deployments
  • bsv-attest — document attestation via OP_RETURN on the BSV blockchain