RGB20 and RGB21 on Bitcoin mainnet with BitMask.

DIBA.io
4 min readSep 6, 2023

RGB is client-side layer2 smart contract protocol with ZK for Bitcoin and the Lightning Network.

In this guide, we’ll walk you through the necessary steps to ensure your BitMask Beta wallet is properly configured to interact with RGB assets on the mainnet. Whether you’re a seasoned Bitcoin enthusiast or just getting started, this preparation will ensure a smooth and secure experience as you explore the potential of RGB assets on the blockchain.

  1. As a first step, you need to fund your Vault. To fund your Vault, you need to have at least 10,000 sats or $2.62 to create your UTXO, to which all the assets will be attached.

Don’t forget that BitMask is a Taproot-only wallet, so you need to transfer sats from a Taproot-supported exchange or wallet. Here is the list of Taproot-supported wallets & exchanges; please look at the ‘Bech32m’ column.

2. After funding Vault, you will have two options wether “Import Assets” or “Create Asset”.

Steps to Create & Send Assets

  1. Press ‘Create Asset’ and enter the ticker or short abbreviation for your asset name, the asset’s full name, the total supply (in the case of TEST assets, it’s 210,000), and set the precision to 18.

2. Press ‘Next.’ Once the asset is successfully created, copy the RGB Contract and click ‘Import.’ To easily share the RGB contract with others, you can use Paste.gb.

3. To send someone your tokens, you need to share your RGB Contract with them. Once they import the assets by entering the contract, they can send you their invoice. You now can enter their invoice, can also add a note, set the fee, and then press ‘Next’.

4.At this step, all you need to do is review the details and then press ‘Confirm’.

5. On the final step, you need to send the consignment to your recipient. For added convenience, you can once again use Paste.gb.

6. Tadaam, everything has been successfully sent!

Steps to Import & Receive Assets

  1. Press ‘Import Assets’ and enter the contract. You can try importing TEST tokens; just copy and paste the RGB Contract from here.

2. When you see the Asset screen, click on ‘Generate Invoice’.

3. After generating the invoice, you can either share the QR code with the sender or copy and send your invoice.

4. As the next step, click ‘Accept’ and enter the consignment shared with you.

5. Taadam, you have received your assets.

6. You can also check your transaction on the mempool by clicking ‘View Transaction’.

We hope this guide has been helpful to you in your RGB asset transfer experience. If you have any questions or need further assistance, please don’t hesitate to reach out.

Feel free to join our Telegram, where you can connect with other users and test BitMask together. Happy exploring!

With love,

BitMask & DIBA Team

Stay connected with DIBA for the latest updates.

Additional questions and comments can be sent to anastily@diba.io.

--

--

DIBA.io

DIBA Global builds decentralized application Infrastructure on Bitcoin and the Lightning network.