Skip to main content

Troubleshooting

Applies to both RGB lines

The two lines have different CLIs that share the binary name rgb, so first check which one you are running. See Two RGB lines.

The messages below are copied from the pinned binaries or their source.

Which rgb is this?​

rgb --version
  • rgb-cmd 0.11.1: Line B.
  • error: unexpected argument '--version' found: probably Line A, whose rgb has no --version. rgb --help lists init, wallets, fund, seals, pay and script.
  • Any other version: the wrong crate. The crate rgb-cli is the old 0.9.1 (2023) tool from before v0.10, and a plain cargo install rgb-wallet installs 0.10.9, an old RGB v0.10 release of the same crate. Reinstall with the exact version, as in Installation:
cargo install --locked rgb-cmd --version 0.11.1
cargo install --locked rgb-wallet --version 0.12.0-rc.3

Both binaries are called rgb, so which -a rgb shows whether both are on your PATH.

Errors by line​

MessageCause and fix
Unable to find or parse config file; using config defaultsNot an error. There is no rgb.toml yet
Error: no blockchain indexer specified; use either --esplora --mempool or --electrum argumentThe command needs chain data. create prints this and then doesn't save the wallet (exit 1). Pass an indexer, as in --electrum=localhost:50001
Error: resolver error: - error: no transaction resolver is specified; use either --esplora --mempool or --electrum argumentvalidate, accept or importing a contract consignment needs an indexer to check witness transactions. Pass one with a full URL
Esplora or Mempool errors for a URL containing {network}A bare --esplora or --mempool keeps the literal {network} placeholder outside wallet sync. Give the full URL (rgb-api#14)
Connection errors to example.com:50001A bare --electrum without =<URL> uses a placeholder server. Always write --electrum=<URL>
ELECTRUM_SERVER has no effectThe variable is misspelt ELECRTUM_SERVER in bp-wallet 0.11.1-alpha.2. Pass --electrum=<URL> (BP-WG/bp-wallet#96)
Loading descriptor from wallet default ... Error: No such file or directory (os error 2)No wallet named default (or the -w name) exists for this network and data directory. Check -n and -d; the default network is testnet3
blinded invoice requested but no suitable outpoint is availablergb invoice without --address-based needs an unspent output in the wallet. Fund it, or use --address-based
only amount or token data should be providedinvoice got both --amount and --token-index, or neither
invalid assignment name for state type--assignment-name doesn't match the kind of state (--amount for fungible, --token-index for UDA)
error: invalid value '…' for '<CONTRACT_ID>': invalid length of identifier … or … Invalid last symbol …A truncated or mistyped contract id. Copy the full rgb:… id from rgb contracts
Error: unexpected end of file on importThe file isn't a strict-encoded kit or consignment, or is truncated
state provided via PSBT inputs is not sufficient to cover invoice state requirementsNot enough of the asset in the selected UTXOs
the invoice has expiredAsk the receiver for a new invoice
invoice requesting chain-network pair … but contract commits to a different oneInvoice and contract are on different networks
use `validate` and `accept` commands to work with …import was given a transfer consignment. Use rgb validate and rgb accept

The full error list is in rgb-api 0.11.1 src/errors.rs and rgb-ops 0.11.1 src/persistence/stock.rs. Errors exit with code 1, and usage errors with code 2.

Before you report a bug​

  • Check the line and version (above), and the network (-n) and data directory (-d) of every command.
  • Neither CLI talks to Bitcoin Core RPC. Both need an Electrum, Esplora or (Line B) Mempool indexer for the right network.
  • A build failing on missing headers usually needs build-essential, pkg-config and libssl-dev (Debian and Ubuntu). Line B's sandbox also needs libsqlite3-dev.
Don't try to "fix" a stuck transfer by spending UTXOs

If a transfer looks stuck, don't spend the wallet's UTXOs from another Bitcoin wallet, and don't delete the RGB data directory. Either can destroy the assets for good. Back up the data directory first, then ask for help.

Where to ask: