Welcome
The BOB Gateway API enables seamless cross-chain interactions for Bitcoin-powered applications. Build bridges, swaps, and DeFi integrations with Bitcoin liquidity.OpenAPI Specification
View the complete API specification
How It Works
Gateway transactions follow a 6-step flow to execute Bitcoin-to-chain or chain-to-Bitcoin swaps:Get Available Routes
Call Returns information about supported chains, tokens, bridges, and fee structures.
GET /v1/get-routes to fetch all supported routes, chains, and tokens. This helps you understand what swaps are available and present options to your users.Get a Quote
Call
GET /v1/get-quote with your swap parameters (amount, source/destination chains, tokens, etc.). The API returns a quote with routing information, fees, and expected outputs.Create an Order
Pass the quote to
POST /v1/create-order to lock in the quote and create an order. This reserves liquidity with the market maker and returns transaction details including:- For onramp (Bitcoin → Chain): A Bitcoin address to send to, or a PSBT to sign
- For offramp (Chain → Bitcoin): EVM transaction data to execute
Sign and Send Transaction
Execute the transaction:
- For onramp: Create and sign a Bitcoin transaction to the provided address, or use the provided PSBT
- For offramp: Sign and broadcast the EVM transaction using the provided transaction data
Register Transaction
Call
PATCH /v1/register-tx with the signed transaction hash/hex. This allows Gateway to track your order and provide status updates.Monitor Order Status
Track your order’s progress using Poll this endpoint to update your UI as the order progresses through states: pending → confirmed → completed.
GET /v1/get-orders/{user_address}. This endpoint returns all orders (pending and completed) for a given user address.The SDK handles all these steps automatically via
executeQuote(). Use the SDK for easier integration, or call the API directly for custom implementations.