Repository navigation
docs(extension): window.rgb provider, error codes, NWC for developers - #35
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Extends the extension's DApp Connectivity page (English and the
cnmirror):window.rgbprovider — 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/webrgband itsrequestProvider()helper.codeevery provider rejects with (USER_REJECTED,NOT_ENABLED,METHOD_NOT_SUPPORTED,INTERNAL_ERROR).A note in the RGB section says
window.rgbships 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.pyreports 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.pywants one unrelated pin oncn/sdk/utilities, left for its own PR.Source
Mirrors the extension's
docs/dapp-rgb-provider.mdand the RGB-over-Lightning change in kaleidoswap/rate-extention!376; the NWC method list is read from the wallet service'sBASE_SUPPORTED_METHODS.🤖 Generated with Claude Code