PyBLØCKbePYBLOCKEXCHANGE
← Back to the exchange

How to use PyBLØCK Exchange

A step-by-step guide to swapping BTC and SPM over Lightning. No account, and your money is never left here.

Go to the exchange

1What it is and what you need

Swap BTC (Bitcoin, BLAKE2b) for SPM (the SHA‑256 chain), or the other way round, over Lightning. No account, and your money is never left here. You need two Lightning wallets: one for each chain.

What you need

Non-custodial, in plain words

There are no balances or deposits here: we never keep anyone’s money. When you pay, your payment stays locked in the Lightning network (it is a “hold invoice”). We do not collect it yet.

First we pay you, to your own wallet. Only then can we collect your payment. If we cannot pay you, your payment is released and goes back to your wallet by itself: it is not a refund, it was never ours.

↑ Back to contents

2Buy BTC: you pay SPM, you get BTC

You will use both wallets: the BTC one to receive and the SPM one to pay.

  1. Open your BTC walletThis is the wallet where you will receive, for example your Laguz Hub.
  2. Create an invoice with the amountTap “Receive” and enter how many sats BTC you want to get: between 100,000 and 10,000,000. Copy the invoice: it starts with “ln”. It must have an amount and be valid for at least 15 minutes.
  3. Paste it in “Swap” and tap “Get quote”On the main page, paste the invoice in the box. You do not choose buy or sell: the exchange tells from the invoice.On screen BTC invoice: you are buying BTC.
  4. Review and confirmThe “Review and confirm” window opens: how much you get, how much SPM you pay, your price, the market price, the fee and how many seconds the price is valid. If it works for you, tap “Confirm”. If not, “Cancel”: nothing is charged.
  5. Pay with your SPM walletA QR code and an SPM invoice appear, with the payment details and a countdown. Scan the QR with your SPM wallet, or tap “Copy” and paste it there. Pay before the countdown ends.On screen Pay this invoice
  6. Done in secondsAs soon as we see your payment, we pay your invoice. Look at your BTC wallet: it is there.On screen We got your payment (held). Paying you now…On screen Done: we paid you 250.000 sats BTC.
Tip: a link to the swap appears below the payment. Keep it: with it you can see how the swap is going, even if you close the page.
↑ Back to contents

3Sell BTC: you pay BTC, you get SPM

The same thing the other way round: the SPM wallet receives and the BTC wallet pays.

  1. Open your SPM walletThis is where you will receive: Phoenix, Zeus, Alby, Wallet of Satoshi or another SPM Lightning wallet.
  2. Create an SPM invoice with the amountEnter how many sats SPM you want to get. The minimum and maximum in SPM are above the “Swap” box, in brackets. The invoice must be valid for at least 15 minutes.
  3. Paste it and tap “Get quote”The exchange sees it is an SPM invoice and understands you are selling BTC.On screen SPM invoice: you are selling BTC.
  4. Review and confirmCheck above all how much BTC you will pay and how much SPM you will get. If it works for you, tap “Confirm”.
  5. Pay with your BTC walletScan the QR or copy the invoice and pay it from your BTC wallet (for example your Laguz Hub), before the countdown ends.
  6. You get your SPMIn seconds it arrives in your SPM wallet, and the page says “Done”.
Tip: before making the invoice, look at “Max per swap now · sell BTC” in the “In numbers (live)” section of the main page. It is the largest swap possible right now.
↑ Back to contents

4Understanding the quote

Above the “Swap” box and in the “Review and confirm” window you will see:

Price
How many SPM 1 BTC is worth. There are two: one to buy BTC and one to sell. Before you paste the invoice you see both; then yours is marked.
Fee
Usually 1.5 %. It can be higher when the market is agitated, and it is not always the same for buying and selling. You always see it before confirming. There are no other charges; your wallet may charge its own network fee.
Lightning network
What it costs to send you the payment over the network. If it shows, it is already in the total.
Total to pay
What you pay, everything included. What you get is exactly the amount of your invoice.
Price valid
The quote lasts about 2 minutes and the countdown tells you how much is left. If it expires, nothing happens: make a new invoice and get a new quote.
Difference from market
How far your price is from the market price, fee included.
Limits
From 100,000 to 10,000,000 sats BTC per swap. In SPM, the same value: you see it in brackets next to it.
24 h cap
There is a volume cap per direction every 24 h. The “Cap” line says how much is left for buying and for selling. It frees up little by little.
Available now
The largest swap possible right now. It can be less than the maximum, depending on liquidity. If it says there is no liquidity, try the other direction or later.
↑ Back to contents

5What “pending” means and what happens if something fails

When you pay, your wallet may show the payment as “pending”. That is normal: your payment is held in the Lightning network while we pay you. It usually takes a few seconds.

Once we pay you, your payment completes and your wallet shows it as done. You do not need to do anything else.

If something goes wrong

If a maker pays the swap

Some swaps are paid by an independent maker, not by the exchange. Before paying you see it in a notice, with their reputation (swaps done and failed). If their wallet fails, your payment comes back by itself when the hold invoice expires: it can take up to ~10 days in BTC. If you would rather not take that risk, tap “Cancel” before paying: nothing is charged.

Closed the page?

Open the swap link you kept. If you logged in with Nostr, you also find it in “My swaps”: tap the row to open it.

Careful: never pay a swap someone else sent you. The money would go to whoever created it, not to you. If you open such a link, the exchange warns you.
↑ Back to contents

6Common errors and how to fix them

The message shows in red below the “Get quote” button. Find it here:

↑ Back to contents

7Nostr account and limit orders

The account is optional: you do not need it to swap. It gives you your history, limit orders, alerts and referrals.

Logging in

Tap “Log in with Nostr” at the top right. No password or email: you sign with your Nostr key.

What is in your account

Limit orders with NWC, step by step

Your money stays in your wallets until the price is reached. Then a normal, non-custodial swap runs. For that you connect two wallets over NWC (Nostr Wallet Connect).

  1. Open the “Orders” tabChoose “One order” or “Ladder (DCA)”, then “Buy BTC” or “Sell BTC”, and “Limit” or “Stop”.
  2. Enter price, amount and expiryThe price is in SPM per BTC, fee included. The amount is what you want to get. The order expires in up to 30 days.
  3. Connect the paying walletIf you buy BTC, your SPM wallet pays; if you sell, your BTC wallet. Tap “Connect” and scan the QR with your wallet (Alby Go or another NWC wallet), or tap “Open in my wallet”. If you use Alby Hub or Laguz Hub, enter its address and tap “Approve in my hub”.
  4. Connect the receiving walletSame as before. This one only needs to create invoices: it cannot pay anything.
  5. Tap “Place order”The order is “open”. When the price is reached, it runs by itself and turns “filled”.

Limit or stop

Budget and how to revoke

The paying wallet gets a budget: what the order can cost, plus 10 %. Your wallet enforces it, not us. You can cancel the order in the table (“Cancel”) and revoke the connection in your wallet whenever you want.

↑ Back to contents

8Being a maker

A maker posts their own offers (buy or sell BTC, at their price) and fills them with their own wallets. Every swap goes wallet to wallet with hold invoices: the exchange never holds your money or the other side's. To start you need an account (Nostr login) and two Lightning hubs connected over NWC.

We charge 1 % of each swap. You need a BTC hub with hold invoices and a lock cap (today, Laguz Hub) and an SPM hub with hold invoices (for example, Alby Hub).

Read the full maker guide →

↑ Back to contents

9FAQ

Do I need an account?

No. Logging in with Nostr is optional: it gives you your history, limit orders, alerts and referrals.

Can I lose my money?

Your payment is locked in Lightning with the same code as your invoice. We can only collect it after paying you. If we do not pay you, it is released by itself.

How much does it cost?

You see the fee before confirming; it is higher when the market is agitated. There are no other charges; your wallet may charge its own network fee.

How long does it take?

A few seconds after you pay. The real figure is in “Time to pay (median)”, in the “In numbers (live)” section of the main page.

Why do I have to create the invoice myself?

Because that way we pay straight to your wallet. Only you hold the secret of your invoice, and only by paying you can we collect your payment.

Can I cancel a swap?

Before paying, yes: tap “Cancel” and nothing is charged. After paying, the swap completes or your payment comes back by itself.

Can I use an on-chain address?

No. Everything is over Lightning: you need a Lightning invoice, in both currencies.

↑ Back to contents

Ready? Keep both wallets at hand and start with a small amount.

Go to the exchange