Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.garden.finance/llms.txt

Use this file to discover all available pages before exploring further.

Garden lets you add Bitcoin swaps to any product. Pick your integration path below and follow the quickstart — most integrators are up and running in under 30 minutes.

Choose your integration path

API

You control the full flow.

SDK

Most of the integration is already handled for you.

Before you start

  • App ID — sign up on the Integrator Portal to get your own production keys.
  • Testnet funds — get testnet BTC from our faucet.

Up and running in 30 minutes

1

Get a quote

GET /quote returns a valid quote for your chosen route.
2

Create an order

POST /orders returns an order with an ID. Status is Created.
3

Initiate swap

Once matched, interact with the contract on the source chain to initiate the swap.
4

See the full swap flow

Poll GET /orders/{id} until the order reaches Completed state.
Follow the API Quickstart for the full walkthrough.

Next steps

Order Lifecycle

Every order status and what it means. Read this before building your UI states.

Contracts

HTLC contract details for each supported chain.

Supported Chains & Assets

All supported routes and chain identifiers.

Affiliate Fees

Earn revenue from swaps through your integration.