Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ window.addEventListener('webln:ready', async () => {
`window.rgb` 把钱包的 RGB 运行时暴露给 DApp——无节点的 RGB 钱包或已连接的 RGB 闪电节点,取决于钱包的配置——让应用无需自建 RGB 后端即可发行、接收、发送和跟踪 RGB 资产。每个涉及资金的调用都会在扩展弹窗中确认,连接提示还允许用户把某个来源限制在特定能力范围内(发行资产受独立的 `issueAsset` 能力控制)。

<Note>
`window.rgb` 将随下一个扩展版本发布,0.2.0 构建中不存在;请用 `rgb:ready` 事件做特性检测,不要假定它一定存在。
`window.rgb` 从扩展 0.3.0 起提供,0.2.0 构建中不存在;请用 `rgb:ready` 事件做特性检测,不要假定它一定存在。
</Note>

### TypeScript 支持
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Approving `signPsbt`, `finalizePsbt`, or `pushPsbt` is never blind-signing: the
`window.rgb` exposes the wallet's RGB runtime to DApps — the node-less RGB wallet or a connected RGB Lightning node, whichever the wallet is configured with — so an app can issue, receive, send and track RGB assets without running its own RGB backend. Every funds-touching call confirms in the extension popup, and the connect prompt lets the user restrict an origin to specific capabilities (minting is gated by its own `issueAsset` capability).

<Note>
`window.rgb` ships with the next extension release. It is not present in 0.2.0 builds; feature-detect it with the `rgb:ready` event rather than assuming it exists.
`window.rgb` ships from extension 0.3.0 on. It is not present in 0.2.0 builds; feature-detect it with the `rgb:ready` event rather than assuming it exists.
</Note>

### TypeScript Support
Expand Down
Loading