> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kaleidoswap.com/llms.txt
> Use this file to discover all available pages before exploring further.

# KaleidoSwap Browser Extension

> Browser extension for the KaleidoSwap ecosystem, offering a multi-layer Bitcoin wallet for Spark, Arkade, Liquid, and RGB, with external Lightning nodes and built-in atomic swaps

KaleidoSwap browser extension brings wallet management, protocol accounts, swaps, and DApp connectivity directly into the browser. It provides a persistent wallet surface for balances, transfers, wallet approval requests, and protocol actions from the toolbar.

## What is the KaleidoSwap Extension?

The KaleidoSwap Extension is the KaleidoSwap browser wallet for Bitcoin and its layers. It gives users one wallet surface for Spark, Arkade, Liquid, RGB on Bitcoin L1, an optional RGB Lightning Node (RLN), swaps, a cross-chain bridge, Nostr identity, and DApp connectivity.

![KaleidoSwap Extension dashboard with network status chips, the BTC balance card with Receive, Swap, and Send, and Your Assets](https://mintcdn.com/kaleidoswap/OYrIAX44Hz-HKeUZ/assets/images/extension/08-dashboard.png?fit=max\&auto=format\&n=OYrIAX44Hz-HKeUZ\&q=85\&s=ea8b4df8d604070a388ae7d535677522)

| Capability | What the KaleidoSwap Extension Adds |
| - | - |
| **Wallet** | Built-in wallet access from the browser toolbar |
| **Payments** | Direct approval flows without copying requests between tools |
| **Asset Management** | BTC and assets across Spark, Arkade, Liquid, node-less RGB-L1, and optional RGB Lightning Node accounts |
| **DApp Support** | WebLN, WebBTC, Bitcoin Wallet Standard, RGB (`window.rgb`), Nostr (NIP-07, NIP-46), and Nostr Wallet Connect |
| **Swaps** | In-extension swap surface when a supported venue is connected |
| **Bridge** | Move funds between Spark and external chains |

## Key Features

### Wallet Management

* Create a wallet with a freshly generated 12-word recovery phrase, or import an existing 12 or 24-word phrase
* Derive Spark, Arkade, Liquid, RGB-L1, and Nostr identity state from the same phrase
* Opt into an RGB Lightning Node when you want RGB Lightning channels and maker-based RGB swaps
* View BTC by account and layer: Spark, Arkade, Liquid, Bitcoin L1, and Lightning/RLN
* Filter assets by protocol account and network, and hide assets you don't want on the dashboard
* Open the wallet in the side panel, a popup, or a full browser tab

### Send and Receive

* **Send** to Bitcoin addresses, Lightning invoices, BOLT12 offers, Lightning addresses, LNURL-pay, Spark addresses, Arkade routes, Liquid addresses and `liquidnetwork:` URIs, and RGB invoices where supported
* **Receive** by picking an asset, then a route by method (Bitcoin address, Lightning invoice, Spark transfer, Arkade transfer, Boarding, Liquid address) or by account, with an optional amount in sats or fiat; RGB invoices can accept one asset or any RGB asset
* QR code generation for easy sharing
* Auto-detection of destination type and compatible route

<video autoPlay muted loop controls controlsList="nodownload" playsInline preload="metadata" poster="/assets/videos/address-auto-routing.jpg" title="Pasting any destination: the wallet picks the network" aria-label="Pasting any destination: the wallet picks the network">
  <source src="https://docs.kaleidoswap.com/assets/videos/address-auto-routing.mp4" type="video/mp4" />
</video>

### Asset Swaps and Bridge

* Fetch KaleidoSwap maker pairs when RLN is connected
* Use Spark/Flashnet venues when Spark pools are available
* Review quote output, fee, expiry, and venue before execution; a built-in maximum slippage protects the minimum output amount
* Bridge funds between Spark and external chains (EVM networks, Solana, and more) with persistent order tracking
* Pay Lightning invoices and Lightning addresses from Arkade, and receive Lightning into Arkade, through Arkade Intents at the cheapest solver quote

<video autoPlay muted loop controls controlsList="nodownload" playsInline preload="metadata" poster="/assets/videos/usdt-on-rgb-swap.jpg" title="Atomic BTC to USDT swap on RGB over Lightning" aria-label="Atomic BTC to USDT swap on RGB over Lightning">
  <source src="https://docs.kaleidoswap.com/assets/videos/usdt-on-rgb-swap.mp4" type="video/mp4" />
</video>

### DApp Connectivity

* **WebLN provider** (`window.webln`) for node info, invoices, payments, keysend, and LNURL
* **WebBTC provider** (`window.webbtc`) for on-chain addresses, PSBT signing, and broadcasting
* **RGB provider** (`window.rgb`) to issue, receive, send, and track RGB assets, discoverable through WebRGB
* **Bitcoin Wallet Standard provider** (`window.bitcoin`) for apps built on the Bitcoin wallet standard
* **Nostr provider** (`window.nostr`) implementing NIP-07 event signing and encryption, derived from the recovery phrase or an imported identity
* **NIP-46 remote signing** (`bunker://`) and **Nostr Wallet Connect** for external apps
* Permission prompts for sensitive DApp operations, with a Connected Apps manager for per-capability review and revocation

### Security

* Argon2id-derived password hash and a separate Argon2id-derived AES-GCM encryption key
* Master mnemonic encrypted in `chrome.storage.local`; decrypted only in memory while unlocked
* Optional passkey (WebAuthn) unlock alongside the password
* PSBT confirmations decode and display destinations, amounts, and the network fee before you sign, and never sign an input that holds RGB assets
* Site permissions are an explicit list of the capabilities you grant; Nostr requests ask every time unless you choose "Sign-in only"
* Auto-lock timeout configurable from Security settings

## Architecture

The KaleidoSwap Extension uses a multi-protocol adapter architecture:

| Protocol | Status | Description |
| - | - | - |
| **Spark** | Implemented | Native Spark wallet, Spark BTC, Spark assets, Lightning send/receive, Flashnet routes, and the cross-chain bridge |
| **Arkade** | Implemented | Arkade BTC, Arkade-native assets, boarding/offboarding, Lightning through Arkade Intents, VTXO renewal and delegation with expiry warnings while locked, and an optional rotating-address (HD) mode |
| **Liquid** | Implemented | L-BTC and Liquid assets (such as USDt) — node-less and self-custodial, synced through an Esplora/waterfalls endpoint |
| **RGB-L1** | Implemented | Node-less RGB on Bitcoin L1 running fully in WebAssembly, with cloud (VSS) and local file backup |
| **RGB Lightning** | Experimental opt-in | RGB Lightning Node (direct URL or Nostr Wallet Connect), RGB Lightning channels, and maker-based RGB swaps |
| **Lightning Node** | Implemented | One external node (RGB Lightning node, LND, or NWC) for Lightning deposits, withdrawals, and balance |

> [!NOTE]
>
> The RGB-L1 and RGB Lightning Node backings are mutually exclusive: RGB assets live either in the node-less on-chain account or on your RLN node, not both at once.

The background service worker owns protocol adapter lifecycle and message routing. The popup is a React wallet interface, while the content and injected scripts bridge web pages to the background service worker for DApp requests.

## How It Works

![KaleidoSwap Extension Architecture](https://mintcdn.com/kaleidoswap/jZkXeFEXDE4-8PkF/assets/images/overview/kaleidoswap-extension.png?fit=max\&auto=format\&n=jZkXeFEXDE4-8PkF\&q=85\&s=b4b0b01a73f64f0d67bbb4fff5e0527f)

* The **extension UI** runs in the browser side panel, a popup, or a full tab
* The **background service worker** manages protocol adapters and cross-context messaging
* **Spark, Arkade, Liquid, and RGB-L1** are derived from the wallet recovery phrase
* **RGB Lightning Node** is optional and currently presented as an experimental feature
* **DApp connectivity** is handled through content scripts that inject `window.webln`, `window.webbtc`, `window.rgb`, `window.nostr` (NIP-07), and `window.bitcoin`

## Everyday Wallet Flow

The KaleidoSwap Extension keeps wallet actions close to the browser:

1. **Open KaleidoSwap** - Launch the wallet from the browser toolbar
2. **Review balances** - Check BTC, Spark, Arkade, Liquid, and RGB asset state
3. **Move funds** - Receive, send, swap, or bridge from the extension
4. **Approve requests** - Confirm trusted DApp actions only after reviewing the details

***

> [card] [Access the Beta](https://kaleidoswap.com/products/extension/beta)
>
> Request access to the KaleidoSwap Extension closed beta.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.