#lightning #nft #bitcoin #smart-contracts #rgb

bin+lib rgb121

RGB-121 Library: fungible digital assets for bitcoin & lightning

2 unstable releases

0.2.0 Feb 6, 2023
0.1.0 Nov 29, 2022

#101 in #nft

Download history 1/week @ 2024-02-15 16/week @ 2024-02-22 30/week @ 2024-02-29 12/week @ 2024-03-07 4/week @ 2024-03-14

51 downloads per month

MIT license

680 lines

RGB-121 Library

⚠️ Warning: this is a work in progress

RGB121 is an RGB schema for collectibles on bitcoin & lightning.

This repository provides rust library and a command-line utility rgb121 which can be used alongside RGB Node to generate and parse RGB121 data (schema, issue assets, interpret contract information returned by RGB Node).

Command-line utility

Install with Docker


Clone the repository and checkout to the desired version (here v0.1.0):

$ git clone https://github.com/RGB-Tools/rust-rgb121
$ cd rust-rgb121
$ git checkout v0.1.0

Build and tag the Docker image:

$ docker build -t rgb121:v0.1.0 .


$ docker run rgb121:v0.1.0 --help


RGB121 library for working with fungible asset types, operating under schemata, defined with LNPBP-121 standard:

  • Root RGB121 schema, returned by [schema::schema()] with id SCHEMA_ID_BECH32
  • RGB121 subschema, returned by [schema::subschema()], prohibiting asset replacement procedure and having id SUBSCHEMA_ID_BECH32
  • High-level RGB121 API performing asset issuance, transfers and other asset-management operations


~397K SLoC