2 unstable releases

0.2.0 Feb 6, 2023
0.1.0 Nov 29, 2022

#2747 in Magic Beans

41 downloads per month
Used in rgb-lib

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


~333K SLoC