Skip to main content

Consignments

Applies to both RGB lines

Both lines move contract history in consignments, but the file formats differ and are incompatible. See Two RGB lines.

A consignment is the package of contract data that one party sends another. It holds everything the receiver needs to validate the state they get: the contract's genesis, the operations from genesis to the receiver's seals, and the Bitcoin witness data and commitment proofs anchoring each one. The receiver checks it against Bitcoin through an indexer, then adds it to their stash.

There are two uses:

  • Contract consignment: the whole contract, used to share or back up a contract (Line B rgb export, Line A rgb backup).
  • Transfer consignment: the history leading to the seals in one transfer, made by the payer and given to the receiver (Line B rgb transfer, Line A rgb pay).

A transfer consignment holds only the history that the receiver's new state depends on, not the whole contract. It still reveals that history, including earlier amounts and outpoints, to the receiver.

Both formats are binary strict encoding, not JSON. Neither is compressed.

Contents (rgb-ops 0.11.1, src/containers/consignment.rs, struct Consignment<TRANSFER>):

FieldWhat it holds
versionThe container version, v0 (rgb inspect prints version: v0)
transferWhether it is a transfer (true) or a contract consignment
terminalsThe concealed (secret) seals the transfer ends at, by bundle (SmallOrdMap<BundleId, SecretSeals>)
genesisThe contract's genesis
bundlesEach transition bundle with its witness: the Bitcoin transaction (PubWitness) and the anchor, i.e. the MPC proof and the tapret or opret proof
schemaThe contract's schema
typesThe strict type system used by the schema
scriptsThe AluVM libraries the schema calls

The terminals aren't validated: a transfer whose terminals were changed still validates. As the recipient, check that your own blinded seal (the utxob:… from your invoice) is among them. If it isn't, the transfer isn't addressed to you, and accept won't give you anything.

The consignment id is a tagged hash, shown in Baid64 with the rgb:csg HRI.

File format (src/containers/file.rs): the bytes RGB\x00, then a 3-byte type marker, CON (contract), TFR (transfer) or KIT (schema kit), then the strict-encoded data. There is also an ASCII-armoured text form with the plate RGB CONSIGNMENT and headers for the version, type, contract id, schema id and terminals (the StrictArmor trait). The rgb-schemas examples write both, with save_file("….rgb") and save_armored("….rgba").

rgb transfer <INVOICE> transfer.rgb transfer.psbt   # payer
rgb validate transfer.rgb # receiver: prints "The provided consignment is valid"
rgb accept transfer.rgb # receiver: adds it to the stash
rgb inspect transfer.rgb # dump any RGB file as YAML
rgb armor transfer.rgb # print the ASCII-armoured form

Commands are in the CLI reference (v0.11).

Coming next: consignment format v1

Line B 0.11.2-rc.1 (2026-10-09, a release candidate) moves the container to v1. Schemas are imported once instead of travelling in each consignment (rgb.info, 2026-10-15), and consignments can carry per-witness SPV proofs (rgb-ops#16, St333p, 2026-10-12). 0.11.2 reads v0 by converting it (the legacy feature). 0.11.1 can't read v1: it fails with unsupported value `1` for enum `ContainerVer` , and the maintainers say they won't emit v0 for peers that haven't upgraded (rgb-ops#26, 2026-10-16). Sender and receiver will have to upgrade together. This page is pinned to 0.11.1.

Send the consignment before you broadcast

The transfer is final as soon as the Bitcoin transaction is mined. If the transaction is published and the consignment is then lost, nobody can prove the receiver's ownership, and the assets are gone. Give the receiver the consignment, and wait for them to validate it, before you sign and publish. Keep a copy of every consignment you send or receive: a wallet seed alone doesn't restore RGB assets.

Further reading​

  • Line B: Contract transfers in the official docs; rgb-ops 0.11.1 source (docs.rs failed to build this version)
  • Line A: rgb-std on docs.rs
  • Client-side validation
  • rgbjs Check: validate a consignment of either line offline in the browser, and, with the secret of your invoice, see what a transfer pays you. Independent and early: witnesses aren't looked up on chain.