RGB-WG / rgb.tech

RGB Website
https://rgb.tech
GNU Affero General Public License v3.0
9 stars 12 forks source link

docs: RGB20 Contract Demo based on RGB v0.11.0-beta.4 #25

Closed bitlightlabs-dev closed 6 months ago

bitlightlabs-dev commented 6 months ago

RGB20 Demo based on RGB v0.11 bitlight-rgb20-contract is a open source project based on Rust language and RGB v0.11.0-beta.4, aiming to demonstrate how to create and operate RGB20 tokens using the RGB protocol. RGB20 is a type of asset in the RGB protocol, similar to Ethereum's ERC20, used to create and manage tokens on the Bitcoin network.

The main goal of this project is to show developers how to use various features of the RGB protocol, including creating RGB20 tokens, transferring tokens, accepting tokens, etc. The code examples in the project are all written in Rust language.

In the RGB20 Demo, we will first create an RGB20 token, and then demonstrate how to transfer this token from one address to another. This process involves many core concepts of the RGB protocol, such as issuing tokens, creating invoices, building PSBT (Partially Signed Bitcoin Transaction), accepting transfers, etc.

In addition, this project also includes some additional tools and resources, such as rgb and Bitcoin Local Env. RGB-CLI is a Command-line wallet for RGB smart contracts on Bitcoin. Bitcoin Local Env is a local Bitcoin environment open-sourced by bitlight, used to test the operation of the RGB protocol.

bitlight-rgb20-contract is a very practical project, whether you want to deeply understand the RGB protocol, or want to create and manage your own tokens on the Bitcoin network, you can get a lot of help from this project.