Power user guidelines

This page will guide through an interaction with RGB smart contracts from a command-line, giving a power user perspective on what the system can do. It is a "baseline guide", abstracted from a specifics of particular wallet or GUI implementations, which may be not updated to the latest RGB version.

  • Using contracts

    First, we'd like to explore how one can add an existing RGB contracts and interact with a current RGB contract state, getting data about owned assets, supply and other information.

    Read more

  • Transfer state

    Second, we will figure out how users can interact with each other in context of a specific RGB smart contract, including how they can do a transfer of assets or other forms of RGB contract state.

    Read more

  • Issue a contract

    Finally, we will demonstrate how to issue a new RGB contracts (including creating assets), which can then be imported by other users. But think twice before producing another token :)

    Read more

This section assumes you have rgb command-line tool already installed. If not, please refer to the installation guidelines.

Using contracts

A contract is distributed as a package, named contract consignment.

Consignment is a term in RGB denoting a package of client-side-validated data passed between peers. Consignments may be of two different types: contract consignments, which distribute public contract information from a contract issuer to users, and transfer consignments, which are used for doing state transfers between contract users. In this chapter we will address the first type of consignments, leaving the second for a next chapter.

RGB stores all data required for its operations in a storage called stash. Since RGB is not a blockchain-based smart contracts, the stash is not replicated to other peer machines and usually keeps the data which nobody else than you know or have access to (at least to some of those data). Thus, losing stash means loosing your assets and contract state, and it has to be backed up with the same effort as a seed phrase or wallet descriptor for a complex wallet setup.

To import a contract into your stash one first needs to get a contract consignment from a contract issuer. A contract consignment is either a binary file – or an ASCII/Base64-armoded text (and example can be found it the "issuing contract" section).

$ rgb import contract.rgb

To list contracts which are part of the stash you need to run rgb commands with no arguments provided (or rgb contracts as an alternative to this)

$ rgb contracts

Which should output something like

rgb:D4RN7r4$-ZNt43c$-ymINZ1r-M$bJPPf-SWp9193-OLIdtv0	bitcoin            	2024-09-07	rgb:sch:RDYhMTR!9gv8Y2GLv9UNBEK1hcrCmdLDFk9Qd5fnO8k#brave-dinner-banana         
  Developer: ssi:anonymous

Here you see your imported contract id, plus a schema, used by this contract which implements RGB20 interface. Now, you can read the state of the contract through this interface:

$ rgb state 'D4RN7r4$-ZNt43c$-ymINZ1r-M$bJPPf-SWp9193-OLIdtv0' RGB20Fixed
Global:
  spec := (ticker=("DBG"), name=("Debug asset"), details=1(("Pay attention: the asset has no value")), precision=2)
  terms := (text=("SUBJECT TO, AND WITHOUT IN ANY WAY LIMITING, THE REPRESENTATIONS AND WARRANTIES OF ANY SELLER  EXPRESSLY SET FORTH IN THIS AGREEMENT OR ANY OTHER EXPRESS OBLIGATION OF SELLERS PURSUANT TO THE TERMS HEREOF, AND ACKNOWLEDGING THE PRIOR USE OF THE PROPERTY AND PURCHASER’S OPPORTUNITY  TO INSPECT THE PROPERTY, PURCHASER AGREES TO PURCHASE THE PROPERTY “AS IS”, “WHERE IS”,  WITH ALL FAULTS AND CONDITIONS THEREON. ANY WRITTEN OR ORAL INFORMATION, REPORTS, STATEMENTS,  DOCUMENTS OR RECORDS CONCERNING THE PROPERTY PROVIDED OR MADE AVAILABLE TO PURCHASER, ITS AGENTS OR CONSTITUENTS BY ANY SELLER, ANY SELLER’S AGENTS, EMPLOYEES OR THIRD PARTIES REPRESENTING OR PURPORTING TO REPRESENT ANY SELLER, SHALL NOT BE REPRESENTATIONS OR WARRANTIES, UNLESS SPECIFICALLY SET FORTH HEREIN. IN PURCHASING THE PROPERTY OR TAKING OTHER ACTION HEREUNDER, PURCHASER HAS NOT AND SHALL NOT RELY ON ANY SUCH DISCLOSURES, BUT RATHER, PURCHASER SHALL RELY ONLY ON PURCHASER’S OWN INSPECTION OF THE PROPERTY AND THE REPRESENTATIONS AND WARRANTIES  HEREIN. PURCHASER ACKNOWLEDGES THAT THE PURCHASE PRICE REFLECTS AND TAKES INTO ACCOUNT THAT THE PROPERTY IS BEING SOLD “AS IS”.
"), media=~)
  issuedSupply := (100000000)

Owned:
  assetOwner:
    value=100000000, utxo=bc:tapret1st:b449f7eaa3f98c145b27ad0eeb7b5679ceb567faef7a52479bc995792b65f804:1, witness=~ -- owner unknown

Here you see that the contract has both global state, representing the information about RGB20 token, and an owned state – certain amount of that token assigned to an UTXO. Since we do not use any wallet, it shows that the owner of this output is not known.

State transfers

In most of the cases interaction between contract participants happens through invoicing: if Alice wants Bob to do something with the contract state he owns (for instance, send some of the tokens to Alice), she constructs an invoice which contains instructions for Bob on the action he is asked to perform.

Hereinafter we will call Alice, who issues an invoice, a beneficiary, and Bob, who executes the invoice, an actor. We say invoice executing instead of paying the invoice, since invoice may not contain a payment and carry some other form of action (key revocation, casting a vote etc).

Creating an invoice

In RGB, invoicing is much more general than just an invoice for a certain amount of tokens. In fact, you can pack any request for any contract operation, under any possible schema and interface in form of invoice: revoking identity, voting in DAO, performing secondary asset issuance, creating NFT engraving and so on, so on.

To construct an invoice one have to run the following command:

$ rgb invoice $CONTRACT -i $INTERFACE -a $ACTION $STATE $SEAL

Here:

  • $CONTRACT should be a contract id under which the interaction happens
  • $INTERFACE is human-readable interface name which should be used for interacting the contract by both parties, beneficiary and actor. It may be skipped, if the contract schema implements just a single interface.
  • $ACTION is the name of the operation which should be performed by the actor. If it is skipped, it defaults to an operation which declared in the used interface as "default".
  • $STATE provides an information about the state, which should be transferred to the beneficiary single-use-seal defined in the $SEAL parameter. The state mast match state type for the given action, for instance, for a transfer of a fungible token it must be an integer specifying amount of smallest token denominations to be transferred.
  • $SEAL is a definition of a single-use-seal owned by beneficiary; it can be either a UTXO on beneficiary's wallet, or an address. If an address is used then the actor will use it to construct an UTXO in his witness transaction, and this UTXO will be seen and in control of the beneficiary.

An example of the command using RGB20 interface to request a token transfer:

alice$ CONTRACT='D4RN7r4$-ZNt43c$-ymINZ1r-M$bJPPf-SWp9193-OLIdtv0'

alice$ MY_UTXO=4960acc21c175c551af84114541eace09c14d3a1bb184809f7b80916f57f9ef8:1

alice$ rgb invoice $CONTRACT -i RGB20 100 $MY_UTXO

The result of this commands would be an invoice printed to STDOUT:

rgb:D4RN7r4$-ZNt43c$-ymINZ1r-M$bJPPf-SWp9193-OLIdtv0
/RGB20/BF+bc:utxob:zlVS28Rb-amM5lih-ONXGACC-IUWD0Y$-0JXcnWZ-MQn8VEI-B39!F

To learn more about invoices please refer to RGB FAQ Website

Performing transfer

To perform a state transfer Bob has to receive an invoice from Alice. We assume that Bob has some command-line wallet tool, which is able to construct, sign and publish normal bitcoin transactions (we will represent this tool with a wallet command).

At the first stage, Bob constructs PSBT file, which must spend outputs containing sufficient amount of RGB assets, plus an output to store a change. We assume that Bob saves PSBT to tx.psbt file.

Now, Bob can pay Alice's invoice (which he saved to $INVOICE variable) with the following command:

bob$ rgb transfer tx.psbt $INVOICE consignment.rgb

The result transfer consignment will be stored to consignment.rgb file in a binary form. Bob should send this file to Alice by some third-party means - this can be an e-mail, some file server – or one of existing RGB-related protocols, like RGB-RPC, Storm (no Lightning network) or something else.

Upon receiving the consignment Alice verifies and accepts it to her local RGB stash (which keeps information about all Alice contracts and owned state) with the following command:

alice$ rgb accept consignment.rgb

If the consignment was invalid, the command will fail and list all problems the consignment had. Otherwise, the command should succeed with a single warning – that the terminal witness transaction is not yet mined. This is due to the fact that Bob hasn't yet published his transaction yet, since he is waiting on Alice approval that she is happy with the transfer.

Upon adding transfer consignment to the stash command will return a signature over the consignment, which Alice can send back to Bob as a form of payslip.

Bob can now check Alice's signature, sign and publish his transaction:

bob$ rgb check <sig> && wallet sign --publish tx.psbt

Alice's RGB wallet will see the witness transaction mined, after which the new state will appear in her user interface.

Issuing contract

To issue a contract you need to write a contract declaration file. Contract declarations can be done in multiple languages, including Rust, YAML, and future Contractum. Here we will stick with a YAML format as most easy-to-use and human-readable format, writing which doesn't require any developer skills:

interface: RGB20Fixed

globals:
  spec:
    ticker: DBG
    name: Debug asset
    details: "Pay attention: the asset has no value"
    precision: 2
  terms:
    text: >
      SUBJECT TO, AND WITHOUT IN ANY WAY LIMITING, THE REPRESENTATIONS AND WARRANTIES OF ANY SELLER 
      EXPRESSLY SET FORTH IN THIS AGREEMENT OR ANY OTHER EXPRESS OBLIGATION OF SELLERS PURSUANT TO THE
      TERMS HEREOF, AND ACKNOWLEDGING THE PRIOR USE OF THE PROPERTY AND PURCHASER’S OPPORTUNITY 
      TO INSPECT THE PROPERTY, PURCHASER AGREES TO PURCHASE THE PROPERTY “AS IS”, “WHERE IS”, 
      WITH ALL FAULTS AND CONDITIONS THEREON. ANY WRITTEN OR ORAL INFORMATION, REPORTS, STATEMENTS, 
      DOCUMENTS OR RECORDS CONCERNING THE PROPERTY PROVIDED OR MADE AVAILABLE TO PURCHASER, ITS AGENTS
      OR CONSTITUENTS BY ANY SELLER, ANY SELLER’S AGENTS, EMPLOYEES OR THIRD PARTIES REPRESENTING OR
      PURPORTING TO REPRESENT ANY SELLER, SHALL NOT BE REPRESENTATIONS OR WARRANTIES, UNLESS
      SPECIFICALLY SET FORTH HEREIN. IN PURCHASING THE PROPERTY OR TAKING OTHER ACTION HEREUNDER,
      PURCHASER HAS NOT AND SHALL NOT RELY ON ANY SUCH DISCLOSURES, BUT RATHER, PURCHASER SHALL RELY
      ONLY ON PURCHASER’S OWN INSPECTION OF THE PROPERTY AND THE REPRESENTATIONS AND WARRANTIES 
      HEREIN. PURCHASER ACKNOWLEDGES THAT THE PURCHASE PRICE REFLECTS AND TAKES INTO ACCOUNT THAT THE
      PROPERTY IS BEING SOLD “AS IS”.
    media: ~
  issuedSupply: 100000000

assignments:
  assetOwner:
    seal: tapret1st:b449f7eaa3f98c145b27ad0eeb7b5679ceb567faef7a52479bc995792b65f804:1
    amount: 100000000 # this is 1 million (we have two digits for cents)

As you can see, contract definition consists of:

  • specification of the interface used for constructing the contract and parsing provided state
  • global state – in this case specifying token nominal information and giving legal contract text
  • assignments, which assign owned state (issued asset amount) to a single-use seals, which are bitcoin UTXO prefixed with a type of seals (tapret1st stays for "tapret 1st output").

You compile the contract and issue it with the command rgb issue. It takes three arguments:

  • the name of a schema which is used as a template for the contract;
  • an information about the issuer identity;
  • YAML file with the contract text we have written above.

Schemata are templates written by professional developers, which hides the contract complexity from the issuers. You may look for them at https://rgbex.io, or just download a kit with the one containing the schema we will be using today.

$ rgb import ~/Downlads/NonInflatibleAsset.rgb

You will see a number of messages on a successful import, which contains ids of the components you have added to the RGB stock.

Importing kit rgb:kit:$Rniyeda-KT4Rnce-aN9gKgA-xkhhVMC-y4SEO8L-KQd9DYI:
- interface RGB20Fixed $iUnO9aO-1xhqUd6-1Jm5S5!-wM3ngby-5GVEylQ-ZTAMYDk#tornado-pioneer-bucket
- schema NonInflatableAsset RDYhMTR!9gv8Y2GLv9UNBEK1hcrCmdLDFk9Qd5fnO8k#brave-dinner-banana
- implementation of RGB20Fixed for NonInflatableAsset
- script library alu:q$CZ0ovt-UN9eBlc-VMn86mz-Kfd3ywu-f7$9jTB-k6A8tiY#japan-nylon-center
- strict types: 89 definitions
Kit is imported

Here we can read that the id of the schema is RDYhMTR!9gv8Y2GLv9UNBEK1hcrCmdLDFk9Qd5fnO8k, please copy it. Now, we can finally issue the contract:

$ rgb issue 'RDYhMTR!9gv8Y2GLv9UNBEK1hcrCmdLDFk9Qd5fnO8k' ssi:anonymous examples/rgb20-demo.yaml
A new contract rgb:D4RN7r4$-ZNt43c$-ymINZ1r-M$bJPPf-SWp9193-OLIdtv0 is issued and added to the stash.
Use `export` command to export the contract.

Please pay attention that the schema id is put into a single quotes: RGB ids may contain characters like $ and ! which has a special meaning in the command shell; if no quotes - or double quotes are used, you will probably get an error.

One may also develop a custom, more advanced schema, providing such facilities as secondary issue or DeFi functionality. To do that, please check programming RGB on this website.

The issued contract was added to the stash. You may see it by running

$ rgb contracts

rgb:D4RN7r4$-ZNt43c$-ymINZ1r-M$bJPPf-SWp9193-OLIdtv0	bitcoin            	2024-09-07
  rgb:sch:RDYhMTR!9gv8Y2GLv9UNBEK1hcrCmdLDFk9Qd5fnO8k#brave-dinner-banana
  Developer: ssi:anonymous

To distribute contract to other users you have to export it in a form of contract consignment. This consignment may be a binary file - or ASCII/Base64 armored text, such that it can be sent via messengers or by an e-mail (or even put into a dynamic QR code).

$ rgb export 'D4RN7r4$-ZNt43c$-ymINZ1r-M$bJPPf-SWp9193-OLIdtv0'

By default, this prints the contract in ASCII armored form to the terminal.

-----BEGIN RGB CONSIGNMENT-----
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3ckV4Jthm=C&OmaW<f`73y-iqLds5F){hncU$ijom%IzoLb(>^Yz
>$s@6fa*%L>wyFU00eGtZe`d%zThtn<+N=058)p7{qSMOjh9_9t?BNfyg->Vo@@aGb8l^B+#WAdR)2C|
*D$SwhJOvD$-0{Gfin@`<nKN_N?|2P^{p2nM9k9NV(jNn@cR^G9g}K+!Jx@Lzn5}xgo%8-2uQvo7b@t4
MVjY>G@u4Q3HlB(d+LiLJm-R=h;`?dxBvhE0000004D$d000000QnaP1l_I#dHB_@bgMhk0_N&La@nc5
HwP6O+keCip#vHLVPOGcVgX}g0c2zWWn}?oW&vks0cdCeX=wp!Y5{9&0c>mmZEXQ=ZUJv^0dQ~uad821
ashL50d#Z$b#(!Db^&*H0eE-;d3gbPdi$wZavD7|R0gwX!*5!Gc?n?5;yM1jui=Thm^szjcmV+b0|P-!
RR}^*L`g?QQ&a;|M?xV03jhEB(4Y?i2MYiJ01F5J01E*E0La=00XZ-L(V!0j2Lu2B0RR910000

-----END RGB CONSIGNMENT-----

You can also add a filename as a second argument, and the contract will be saved into this file in binary form.