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 for | Wallets, apps and assets that exist today, including Lightning | Studying the v0.12 design on testnet or regtest |
| CLI | rgb from rgb-cmd 0.11.1 | rgb from rgb-wallet 0.12.0-rc.3 (refuses mainnet) |
| App library | rgb-lib (Rust, plus Kotlin, Swift, Python and Node.js bindings) | rgb-runtime (Rust only) |
| Contracts | Schemas: NIA, IFA, UDA, CFA, PFA | Codexes and issuers (.issuer files) |
| Lightning | RGB 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
| Guide | Line | What it covers |
|---|---|---|
| Schemas | B | The NIA, IFA, UDA, CFA and PFA schemas |
| Genesis | both | Issuing a contract: rgb issue, ContractBuilder, rgb-lib, .issuer files |
| State transitions | both | What a transition contains and how a transfer flows |
| Bundles | B | Transition bundles (Line A removed them from consensus) |
| Contractum | A | A proposed contract language; not implemented |
Assets
| Guide | Line |
|---|---|
| Creating fungible tokens and transferring them | both |
| 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, transfers | B, plus issuing with a third-party v0.12 RGB21 issuer |
Lightning: overview, asset channels and routing. Line B only, through RGB Lightning Node.
Development
| Guide | Line | What it covers |
|---|---|---|
| Rust | both | rgb-lib, rgb-ops/rgb-api (B); rgb-runtime/rgb-std (A) |
| JavaScript and TypeScript | B | rgb-lib on npm, third-party packages, the RGB Lightning Node REST API |
| Wallet integration | both | Keys, coin selection, receiving, sending, backups |
| Testing | both | Regtest 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, andRGB-WG/rgb-sdkis archived (last pushed 2022-06-06).rgb(crates.io): an unrelated pixel-colour crate. The v0.12 library crate isrgb-std, which you import asrgb.@rgbjs/*(npm): never published, so anyone could register the names. Don't install them.