Try a live swap.
What you need, and every step to a swap both ways.
00CKBolt hub
Checking…Asking the hub…
Lightning · a Bitcoin test network
…
Fiber
…
Per swap
Shown once the hub serves swaps.
01What you need
- Desktop Chrome or Edge: the Fiber node runs in them. Others open it in a window.
- JoyID on CKB testnet, to fund the node. It uses a passkey; nothing to install.
- A Lightning wallet on Mutinynet. This guide uses Alby Hub, which runs in Docker.
02Step by step
Run a Lightning wallet on Mutinynet
- Start Alby Hub in Docker:
docker run -d --name albyhub-mutinynet --restart unless-stopped -v albyhub-mutinynet:/data -e WORK_DIR=/data -e NETWORK=signet -e MEMPOOL_API=https://mutinynet.com/api -e LDK_ESPLORA_SERVER=https://mutinynet.com/api -e LDK_GOSSIP_SOURCE=https://rgs.mutinynet.com/snapshot -p 127.0.0.1:8029:8080 ghcr.io/getalby/hub:v1.24.4
- Open http://localhost:8029, set a password and skip the Alby account.
Get test sats
- In Alby Hub: Node, Advanced, Connect Peer. Add Megalith:
03e30fda71887a916ef5548a4d02b06fe04aaa1a8de9e24134ce7f139cf79d7579@64.23.192.68:9736
- Copy your node's pubkey from the same page.
- At the Mutinynet faucet, open a channel to it: 300,000 sats, push 50%.
- It is ready in about 3 minutes.
Get a Lightning channel from the hub
- Alby Hub can pay the hub only over a channel of its own.
- Copy the hub's Lightning address from the hub card above.
- In Alby Hub, Connect Peer with it, and copy your node's pubkey.
- On the hub card, paste it and press Get a channel. Ready in about 3 minutes.
Create your browser Fiber node
- At the top right, open Fiber node.
- Create node and choose a password.
- Back up the key: Settings, Download encrypted backup.
Fund it with testnet CKB
- Claim testnet CKB to your JoyID testnet address at the Nervos faucet.
- In the node's Add funds, Fund from a wallet with about 1,300 CKB. JoyID signs once.
- Test cWBTC on chain, if you want some: claim it to the node's address.
Nervos faucet (opens in a new tab)Get test cWBTC (opens in a new tab)
Open a channel with the hub
- In the node's Channels, tick CKB and any tokens such as cWBTC, then Open.
- Each token is its own channel and needs about 181 CKB more on chain.
- It is ready after a few CKB confirmations.
Swap both ways
- In the app: Connect Fiber, then CKBolt node.
- BTC to CKB: type the sats, press Swap, pay the invoice from Alby Hub.
- CKB to BTC: flip with ⇅, paste an invoice from Alby Hub, press Swap.
- Keep the page open until the swap completes.
Take your CKB back
- Before you clear browser data, close the hub's channel in the node's Channels.
- On Close, choose My wallet to send the node's share straight to your address.
- Or let it return to the node, then Withdraw with the node's password.
- Withdraw sends all the node's on-chain CKB to your address, minus a small fee.
- Clearing browser data deletes the node's keys: keep the backup.
03Limits
- 1,000 to 20,000 sats per swap.
- Test networks only: nothing here has value. Mainnet invoices are refused.
- The browser node is experimental. Keep the page open while you swap.
04Something wrong?
Report it with the swap id from the swap's Details.
Report a problem (opens in a new tab)