23 unstable releases (5 breaking)

0.9.0 Feb 2, 2023
0.9.0-rc.1 Dec 27, 2022
0.8.0 Nov 19, 2022
0.8.0-rc.4 Jul 30, 2022
0.4.0 Mar 14, 2021

#105 in #lightning

Download history 32/week @ 2024-02-25 61/week @ 2024-03-03 25/week @ 2024-03-10 7/week @ 2024-03-17 67/week @ 2024-03-31

104 downloads per month
Used in 5 crates

MIT license


RGB-20 Library

RGB20 is an RGB schema for fungible digital assets on bitcoin & lightning.

This repository provides rust library and a command-line utility rgb20 which can be used alongside RGB Node to generate and parse RGB20 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.8.0-rc.3):

$ git clone https://github.com/RGB-WG/rust-rgb20
$ cd rust-rgb20
$ git checkout v0.8.0-rc.3

Build and tag the Docker image:

$ docker build -t rgb20:v0.8.0-rc.3 .


$ docker run rgb20:v0.8.0-rc.3 --help


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

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


~400K SLoC