GET
/
quote
Get swap quote.
curl --request GET \
  --url https://{environment}.garden.finance/v2/quote \
  --header 'garden-app-id: <api-key>'
{
  "status": "Ok",
  "error": "<string>",
  "result": [
    {
      "solver_id": "<string>",
      "source": {
        "asset": "bitcoin:btc",
        "amount": "1000000",
        "display": "0.01",
        "value": "100"
      },
      "destination": {
        "asset": "bitcoin:btc",
        "amount": "1000000",
        "display": "0.01",
        "value": "100"
      }
    }
  ]
}

Get a quote for swapping assets across different blockchain networks.

Authorizations

garden-app-id
string
header
required

If you do not yet have an APP ID, please follow these steps.

Query Parameters

from
required
Available options:
bitcoin:btc,
ethereum:cbbtc,
ethereum:wbtc,
ethereum:usdc,
ethereum:seed,
ethereum:ibtc,
arbitrum:wbtc,
arbitrum:usdc,
arbitrum:ibtc,
base:cbbtc,
base:usdc,
bera:lbtc,
starknet:wbtc,
hyperevm:ubtc,
corn:btcn,
unichain:wbtc,
unichain:usdc,
botanix:btc,
solana:sol
to
required
Available options:
bitcoin:btc,
ethereum:cbbtc,
ethereum:wbtc,
ethereum:usdc,
ethereum:seed,
ethereum:ibtc,
arbitrum:wbtc,
arbitrum:usdc,
arbitrum:ibtc,
base:cbbtc,
base:usdc,
bera:lbtc,
starknet:wbtc,
hyperevm:ubtc,
corn:btcn,
unichain:wbtc,
unichain:usdc,
botanix:btc,
solana:sol
from_amount
string
to_amount
string

Response

200 - application/json

Quote information.

The response is of type object.