Overview
BOB Gateway is an intent-based bridge that enables Bitcoin users to access DeFi protocols with a single Bitcoin transaction. The protocol coordinates peer-to-peer swaps between users and Solvers secured by an on-chain Bitcoin Light Client.Onramp: Bitcoin → BOB
Quote
User requests to swap BTC for wrapped BTC or execute a DeFi action (stake, lend, swap). The API provides quotes with routing information, fees, and expected outputs.
Order Creation
User creates an order with the Relayer to reserve liquidity. The Relayer provides transaction details including the Solver’s Bitcoin address and order parameters.
Bitcoin Transaction
User sends BTC to the given Bitcoin address. The order details are tracked by the Relayer using the transaction ID (txid).
Trustless Verification
The Relayer verifies the Bitcoin transaction:
- The transaction exists in a Bitcoin block
- The block meets the required proof-of-work difficulty
- The transaction was sent to the correct Solver address with the correct amount
Intent Execution
After verification, Gateway releases the Solver’s wrapped Bitcoin to execute the user’s intent:
- Direct transfer: Sends wrapped BTC to user’s address
- Staking: Converts to BTC LST/LRT and sends to user
- Custom strategy: Executes smart contract logic
Architecture Diagram
The onramp process involves trustless coordination between Bitcoin, the Relayer, and BOB:Offramp: BOB → Bitcoin
Registration
Solvers register their address and fund it with native Bitcoin (BTC) to fulfill offramp orders.
User Creates Order
User locks wrapped Bitcoin in the
OfframpRegistry smart contract and specifies their Bitcoin address for receiving BTC.Solver Accepts & Fulfills
Solvers monitors open orders, accepts those that meets their fee threshold and broadcasts a Bitcoin transaction to the user’s specified address.
Proof & Settlement
After Bitcoin confirmation, the Relayer submits a Merkle proof of the Bitcoin transaction to the
OfframpRegistry. The contract verifies the proof and transfers the user’s locked wrapped Bitcoin to the Solver as reimbursement.