Skip to content

docs(extension): window.rgb provider, error codes, NWC for developers - #35

Merged
bitwalt merged 2 commits into
mainfrom
docs/extension-window-rgb-nwc
Sep 15, 2026
Merged

bitwalt merged 2 commits into
mainfrom
docs/extension-window-rgb-nwc

Conversation

@bitwalt

@bitwalt bitwalt commented Sep 15, 2026

Copy link
Copy Markdown
Member

What

Extends the extension's DApp Connectivity page (English and the cn mirror):

  • window.rgb provider — overview bullet, ready event, a full section with the method table, example usage, the RGB-over-Lightning pair (makeLnInvoice / payLnInvoice, listed only when the wallet's RGB runtime is a Lightning node), and the transfer events. Opens with a TypeScript Support block pointing at @kaleidorg/webrgb and its requestProvider() helper.
  • Error codes — the code every provider rejects with (USER_REJECTED, NOT_ENABLED, METHOD_NOT_SUPPORTED, INTERNAL_ERROR).
  • Nostr Wallet Connect › For Developers — the pairing string shape, the NIP-47 version and encryptions the wallet service announces, the eight supported methods, and per-client budgets.

A note in the RGB section says window.rgb ships with the next extension release and is absent from 0.2.0 builds, so the page is safe to publish ahead of it.

Checks

python3 scripts/check-cn-parity.py reports zero structural, frontmatter, link and anchor issues for both pages. The only remaining line is the pre-existing navigation page-count gap (en 91 / cn 87), untouched here. pin-cn-anchors.py wants one unrelated pin on cn/sdk/utilities, left for its own PR.

Source

Mirrors the extension's docs/dapp-rgb-provider.md and the RGB-over-Lightning change in kaleidoswap/rate-extention!376; the NWC method list is read from the wallet service's BASE_SUPPORTED_METHODS.

🤖 Generated with Claude Code

bitwalt and others added 2 commits September 15, 2026 14:26
Document the RGB provider the extension injects (methods, example, RGB over
Lightning, events), the error codes every provider rejects with, and how a
non-browser app integrates over Nostr Wallet Connect: pairing string shape,
the NIP-47 methods the wallet service supports, and per-client budgets.
Chinese page mirrored; check-cn-parity.py passes apart from the pre-existing
navigation page-count gap.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…r section

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@bitwalt
bitwalt merged commit 692aa55 into main Sep 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant