Skip to main content
The Swap Lifecycle

How It Works

Hash Time-Locked Contracts carry settlement without asking anyone to trust a middle party. The trade either lands atomically for both sides or each participant takes back what they locked, and no custodian or central exchange enters the picture.

The Lifecycle

How a Swap Settles in Three Moves

Each trade runs through the same cryptographic sequence, and the chain enforces every step without a trusted third party in the loop.

  1. 1

    Open the Swap and Lock Funds

    Each participant places their assets into a Hash Time-Locked Contract on their own chain. A single cryptographic hash preimage binds the two contracts together, and neither side can claim until the secret is revealed.

  2. 2

    Expose the Preimage

    One side claims its incoming funds by broadcasting the preimage on-chain, which puts the secret in plain view. The counterparty reads it and uses the same value to claim on the second chain, so the trade closes without anyone mediating.

  3. 3

    Close Out or Expire

    Should either side go quiet past the agreed window, the HTLC time-lock runs down and each participant gets its original funds back in full. Settlement lands for both parties at once, or the trade unwinds and nobody loses anything.

Watching the Flow

How Funds Move Across Two Chains

The sketch below traces a swap that completes, following each asset from lock to release on its own chain.

Party A Bitcoin chain Party B Target chain HTLC Lock Hash H, 24h timeout HTLC Lock Hash H, 12h timeout Preimage Revealed secret s : H = hash(s) A claims BTC B claims asset H
Before You Start

Questions We Get Asked

Should a counterparty stall, the HTLC does the rest. Once the agreed time-lock window passes without a claim, the contract releases the locked funds back to whoever committed them. Neither side has to file a request or lean on support, because the timeout is enforced on-chain, and each participant ends up with the assets they brought to the swap.

No. BuiId on Bitcoin is infrastructure, not a custodian. Funds sit only inside on-chain HTLC contracts that the participants' own keys control. Our software coordinates swap parameters and routing, yet at no stage does it take possession of, or gain access to, user assets.

Bitcoin, Ethereum, Litecoin, Dogecoin, Solana, and Polygon (MATIC) currently serve as swap endpoints. We bring on a new chain when liquidity depth, finality guarantees, and smart contract capability justify the work. The Integrations page lists the status of each one.

The slowest chain in a pair sets the clock. Any route touching Bitcoin mainnet needs 30-60 minutes because of the 3-confirmation requirement. Trades among Ethereum, Polygon, and Solana close in 1-15 minutes, depending on each chain's confirmation threshold, while Litecoin and Dogecoin pairs take 5-20 minutes. Per-chain timing sits on the Integrations page.

Swap at least 0.001 BTC equivalent, a floor that keeps the protocol fee meaningful against on-chain gas. The protocol itself sets no ceiling. Very large orders can be split across several HTLC contracts running in parallel so pool depth stays manageable. For high-volume routing, talk to the team.

Get the First Swap Running

The Spot tier costs nothing. Read the developer docs and put a swap through the testnet inside an hour.