Atomic swaps · non-custodial

Swap BTC and FBC,
peer to peer

Two people, two wallets, two blockchains, one preimage. No custody, no middleman, no fees — just the scripts each chain already understands.

Requires wallet v0.2.2+ and extension v0.2.0+.

  1. 1

    Connect your wallets

    Bitcoin
    not connected
    Fistbump
    not connected
  2. 2

    Set the terms

  3. 3

    Send this to your counterparty

    Copy this line to your counterparty — Signal, email, whatever you use. It is just public data: hashlock, your pubkeys, amounts, and the two refund heights.

    Show parsed offer
    
              
  4. 4

    Paste their accept back here

  5. 5

    Fund your BTC HTLC

    Your wallet will build a standard segwit transaction that locks the BTC into an HTLC that only resolves to them with your preimage or you after the refund height. No one else can touch it.

  6. 6

    Wait for them to fund FBC, then claim

    Once the counterparty funds the FBC side, your wallet will claim it by broadcasting a transaction that reveals your preimage. The reveal is what lets the counterparty unlock the BTC you posted — that's the atomic part.

  7. 7

    If something went wrong — refund your BTC

    Only use this if the counterparty never funded their FBC HTLC and the BTC refund height has passed. You can check the current BTC tip on 3xpl.com. Don't touch this if you already claimed FBC in step 6 — your funds are already on their way to the counterparty and trying to refund will just waste a tx fee.

How atomic swaps work

A

Shared secret

One party generates a 32-byte secret and hashes it. Only the hash is shared. The hash is the puzzle piece; the secret is the key that solves it.

B

Matching locks

Both chains lock funds into scripts that say: "to spend, either provide the matching secret, or wait until the refund height." Identical logic, two chains.

C

The reveal

Claiming one side requires putting the secret in the transaction witness — which makes the secret public. The other side uses that same secret to claim.

D

Or a refund

If anything goes wrong, the refund paths take over after the timelocks. No one can be cheated out of their coins — worst case, you wait and get your money back.