RGB in a browser tab: what 1.0.0-beta.16 actually requires
- The claim, precisely
- What actually works, end to end
- Four defects that cost a day each
- Why the relay is the real design decision
- The part that is not a bug report: the indexer layer
- What a holder actually gets
- What I would tell the next integrator
Field notes from a complete issue → transfer → offline verify loop on regtest, in Chrome, with no backend.
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 at github.com/ufo1898/zero-server-rgb, the live tool at pixelox.top/rgb, and issue #22 in the upstream SDK.
The claim, precisely
You can do two of the three core operations with no server at all:
- Issue — create a contract, commit it to Bitcoin, mint supply. Runs entirely in the tab: a 19.7 MB WebAssembly build of rgb-lib, static files, no backend.
- Verify — take a consignment blob someone hands you and validate it offline. No wallet, no indexer, no network. This is the operation that makes RGB interesting for anyone whose internet can be cut.
- Transfer — the one that needs infrastructure, and only one piece of it: a single stateless relay per transfer, because RGB protocol 1.0 is built around consignment exchange over an endpoint pair.
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:
- One relay is a chokepoint. The fix is not “no relay” — it is redundant relays and invoices that carry more than one endpoint, so a transfer succeeds if any endpoint is reachable.
- A public relay is a public good. The one behind the live tool is open and unauthenticated:
rpcs://pixelox.top/rgb-proxy/json-rpc, MAX_POW_DIFFICULTY=0, 30-day invoice expiry, 24-hour consignment retention. It exists so other integrators can test without standing up infrastructure first, and so nobody’s first experience of RGB is “run a server”.
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:
| Endpoint | Success | Failure mode |
|---|---|---|
| blockstream.info/api | 24 / 24 | — |
| mempool.space/api | 20 / 24 | rate 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:
- You can create an asset on Bitcoin from a phone browser, with no account anywhere.
- You can hand someone a 713-byte file that proves what you hold, and they can check it on a laptop that has never been online.
- You can move the asset to another holder with exactly one piece of shared infrastructure, which anyone can mirror in a single command.
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
- Start on regtest with two separate browser profiles. Anything that works in one tab is not a transfer.
- Do not trust a default endpoint. Set proxyEndpoint explicitly and log the resolution failure if it does not answer.
- Call createUtxos and wait one confirmation before your first blindReceive, or you will read defect 3 as a broken wallet.
- Export the consignment and verify it with the network off. If your verification needs the network, you have not verified anything.
- 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.
Written by sanjin · github.com/ufo1898/zero-server-rgb · relay rpcs://pixelox.top/rgb-proxy/json-rpc
Nostr: @zk7u…tn3s
- Reference: https://pixelox.top/blog/rgb-1-0-beta16-browser-field-notes.html
- Reference: https://pixelox.top/rgb/
- Reference: https://github.com/ufo1898/zero-server-rgb
- Reference: https://github.com/UTEXO-Protocol/rgb-sdk-web/issues/22
Write a comment