Skip to main content
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>",
      "estimated_time": 123,
      "source": {
        "asset": "arbitrum:wbtc",
        "amount": "1000000",
        "display": "0.01",
        "value": "100"
      },
      "destination": {
        "asset": "arbitrum:wbtc",
        "amount": "1000000",
        "display": "0.01",
        "value": "100"
      },
      "slippage": 50,
      "fee": 30,
      "fixed_fee": "0.05"
    }
  ]
}
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

Mainnet

Available options:
arbitrum:wbtc,
ethereum:wbtc,
arbitrum:ibtc,
base:cbbtc,
bitcoin:btc,
bnbchain:btcb,
botanix:btc,
citrea:cbtc,
ethereum:cbbtc,
ethereum:usdt,
hyperevm:ubtc,
litecoin:ltc,
monad:mon,
monad:usdc,
solana:cbbtc,
solana:sol,
solana:usdc,
starknet:wbtc,
tron:usdt
to
required

Mainnet

Available options:
arbitrum:wbtc,
ethereum:wbtc,
arbitrum:ibtc,
base:cbbtc,
bitcoin:btc,
bnbchain:btcb,
botanix:btc,
citrea:cbtc,
ethereum:cbbtc,
ethereum:usdt,
hyperevm:ubtc,
litecoin:ltc,
monad:mon,
monad:usdc,
solana:cbbtc,
solana:sol,
solana:usdc,
starknet:wbtc,
tron:usdt
from_amount
string
to_amount
string
affiliate_fee
integer

(Optional) Add an affiliate fee to each swap, defined in bips (100 bips = 1%).

slippage
integer

(Optional) Add slippage up to 5% for each quote/swap, defined in bips (100 bips = 1%.

indicative
boolean

Return an indicative quote. Default: false

Response

200 - application/json

Quote information.

status
enum<string>
Available options:
Ok,
Error
error
string | null
result
object[]