RGB in a browser tab: what 1.0.0-beta.16 actually requires

Field notes from a complete issue → transfer → offline verify loop on regtest, in Chrome, with no backend.  ·  2026-12-02  ·  live tool  ·  source (MIT)

RGB is the most interesting thing happening on Bitcoin right now, and almost nobody can use it. That gap is not a protocol problem. It is a tooling problem, and it is measurable: I spent November 2026 doing one thing — issuing an RGB20 asset and transferring it between two wallets, entirely inside a browser tab, with no node, no indexer and no backend of my own — and most of that time went into four defects in the reference browser SDK rather than into RGB itself.

This is the field report. Everything below is reproducible from public artefacts: the MIT repository, the live tool, and issue #22 in the upstream SDK.

The claim, precisely

You can do two of the three core operations with no server at all:

That last point is where most write-ups go wrong, mine included until I had to build it. "Zero server" is true for issuance and verification and false for transfers. If you read a claim that a browser wallet transfers RGB with no infrastructure whatsoever, the claim is missing a relay.

What actually works, end to end

Two isolated browser contexts (two Chrome profiles, real clicks, no mocks), regtest, SDK @utexo/rgb-sdk-web@1.0.0-beta.16, relay rgb-proxy-server@0.4.0:

issue  → blindReceive → onchainSend → refresh ×2 → Settled (both sides)
txid        4a8bed7fea321cb59c61e52f93995ff41fe04b9bd31ff7f1956dbd659074afdc
balances    sender 700 / receiver 300
consignment 713 bytes
verify      validateConsignmentOffchain → {"valid":true,"warnings":[]}

The consignment is the interesting artefact. 713 bytes that a receiver can validate later, on a machine that has never touched the network, is a genuinely different trust model from "ask the API what my balance is". I verified it with the wallet closed and the network unplugged from that context — the verification path never touches either.

Four defects that cost a day each

These are filed as UTEXO-Protocol/rgb-sdk-web#22. They are ordinary tooling bugs, not protocol objections, and each one stops a new integrator at a different stage.

1. First-run defaults are dead

The docs promise proxyEndpoint "defaults to the SDK proxy of the network (protocol 1.0)", and vssUrl defaults to vss-server.utexo.com. Both hosts are NXDOMAIN as of writing. The failure surfaces later as a generic network or CORS error, so a beginner concludes their own code is wrong. If the default cannot be live, fail at construction with "no reachable relay for this network" instead of failing at invoice time.

2. blindReceive({amount}) produces an invoice onchainSend cannot consume

Receiving without an assetId returns a valid asset-agnostic invoice. Sending against it throws Asset ID is required, because the asset is resolved as invoice.assetId ?? params.assetId and both are undefined. Either require assetId up front, or resolve it when the wallet holds exactly one asset. A wallet with one asset should not need to be told which asset it means.

3. An allocations error wearing a funds error's clothes

Insufficient bitcoin funds: needed '2000', available '0'

Thrown by blindReceive on a wallet with no colorable allocations. The wallet may hold plenty of bitcoin; what it lacks is a UTXO suitable for coloring, which means createUtxos plus one confirmation. The message sends you to the funding layer twice before you work out it is an allocation problem. Distinct messages here would save every integrator the same half-day.

4. WalletTransfer carries no assetId, and there is no offline verify method

getConsignment(assetId, txid) is the API you need after a transfer, but a WalletTransfer record does not carry an assetId, so the caller guesses among listAssets(). With one asset that is a harmless guess; with several it is a coin flip.

Worse: RgbLibWeb exposes no offline consignment verification at all. To verify a receipt I had to import @utexo/rgb-lib-wasm directly and call validateConsignmentOffchain / inspectConsignment. One wrapper —

verifyConsignment(bytes: Uint8Array): { valid: boolean; warnings: string[] }

— would be the single highest-value addition to the SDK. Verifying a receipt without a wallet, an indexer or a network is the operation every integration needs and the one the SDK does not offer.

Why the relay is the real design decision

Protocol 1.0 transfers move consignments between two endpoints. In practice that means an invoice carries an endpoint, the sender pushes a consignment to it, the receiver pulls it. The relay sees ciphertext blobs and transaction ids; it holds no keys and cannot spend anything. But it can refuse service, and a refusal is a failure the user experiences as "my money did not arrive".

So the topology matters more than the code. Two things follow, and I think any honest RGB deployment has to say both:

The part that is not a bug report: the indexer layer

RGB validation is client-side, but wallet sync still asks an Esplora instance what happened on chain. I load-tested two public instances with 24 concurrent clients:

EndpointSuccessFailure mode
blockstream.info/api24 / 24—
mempool.space/api20 / 24rate limit, surfaced to the app as a CORS error

The 4 failures are the interesting number, because browsers report a 429 from a rate limiter as a CORS failure. That single mislabelling is responsible for a large share of "RGB is broken in the browser" reports: the library is fine, the indexer is throttling you, and the console blames cross-origin policy. Any serious deployment needs its own indexer or a paid endpoint — which is a cost, and worth saying out loud before someone builds a product on a free public instance.

What a holder actually gets

Strip the engineering away and here is the user-facing property, which is why any of this matters beyond a weekend project:

For a journalist paid in an asset a government would rather not exist, or a mutual-aid group keeping books that should not live on a server someone can seize, those three properties are the whole point. They are also, at the moment, the difference between a protocol with a future and a protocol with a specification.

What I would tell the next integrator

  1. Start on regtest with two separate browser profiles. Anything that works in one tab is not a transfer.
  2. Do not trust a default endpoint. Set proxyEndpoint explicitly and log the resolution failure if it does not answer.
  3. Call createUtxos and wait one confirmation before your first blindReceive, or you will read defect 3 as a broken wallet.
  4. Export the consignment and verify it with the network off. If your verification needs the network, you have not verified anything.
  5. Assume the relay can disappear, and design the invoice so a second endpoint can take over.

Everything in this post is checkable without asking me for anything: the tool is live, the repository is MIT, the SDK issue is public with reproduction steps, and the numbers above came from a harness you can run. If you are integrating RGB in a browser and hit a fifth defect, the issue thread is the right place for it — that is where the fixes will come from.