Skip to main content

Guides Overview

Applies to both RGB lines

This page routes you to the guide for your line. Some guides cover both lines in tabs, others only one. See Two RGB lines.

Pick a line first​

Line B: v0.11 (RGB Protocol Association)Line A: v0.12 (RGB-WG)
Use it forWallets, apps and assets that exist today, including LightningStudying the v0.12 design on testnet or regtest
CLIrgb from rgb-cmd 0.11.1rgb from rgb-wallet 0.12.0-rc.3 (refuses mainnet)
App libraryrgb-lib (Rust, plus Kotlin, Swift, Python and Node.js bindings)rgb-runtime (Rust only)
ContractsSchemas: NIA, IFA, UDA, CFA, PFACodexes and issuers (.issuer files)
LightningRGB Lightning Node (alpha)None from RGB-WG; Bitlight Labs has its own stack (unchecked)

If you're not sure, use Line B. Neither line can read the other's contracts, invoices or consignments.

Guides and their lines​

Contracts

GuideLineWhat it covers
SchemasBThe NIA, IFA, UDA, CFA and PFA schemas
GenesisbothIssuing a contract: rgb issue, ContractBuilder, rgb-lib, .issuer files
State transitionsbothWhat a transition contains and how a transfer flows
BundlesBTransition bundles (Line A removed them from consensus)
ContractumAA proposed contract language; not implemented

Assets

GuideLine
Creating fungible tokens and transferring themboth
Secondary issuance (IFA)B
Collectible fungible assets (CFA)B, plus a note on a third-party v0.12 RGB25 issuer
Unique digital assets (UDA): metadata, transfersB, plus issuing with a third-party v0.12 RGB21 issuer

Lightning: overview, asset channels and routing. Line B only, through RGB Lightning Node.

Development

GuideLineWhat it covers
Rustbothrgb-lib, rgb-ops/rgb-api (B); rgb-runtime/rgb-std (A)
JavaScript and TypeScriptBrgb-lib on npm, third-party packages, the RGB Lightning Node REST API
Wallet integrationbothKeys, coin selection, receiving, sending, backups
TestingbothRegtest stacks, rgb-sandbox, testnet4

Names to avoid​

These appear in older RGB material, but they aren't the tools of either current line:

  • rgb-cli, rgb-node, lnp-node (crates.io): 0.9.x releases from 2023.
  • rgb-sdk: no such crate on crates.io, and RGB-WG/rgb-sdk is archived (last pushed 2022-06-06).
  • rgb (crates.io): an unrelated pixel-colour crate. The v0.12 library crate is rgb-std, which you import as rgb.
  • @rgbjs/* (npm): never published, so anyone could register the names. Don't install them.