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:usdc",
        "amount": "1000000",
        "display": "0.01",
        "value": "100"
      },
      "destination": {
        "asset": "arbitrum:usdc",
        "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
Available options:
arbitrum:usdc,
arbitrum:wbtc,
arbitrum:seed,
base:cbbtc,
base:usdc,
bera:lbtc,
bitcoin:btc,
bnbchain:bnb,
bnbchain:btcb,
bnbchain:usdc,
botanix:btc,
core:wbtc,
corn:btcn,
ethereum:cbbtc,
ethereum:wbtc,
ethereum:seed,
ethereum:usdc,
ethereum:eth,
hyperliquid:ubtc,
solana:sol,
solana:usdc,
solana:cbbtc,
starknet:wbtc,
sui:sui,
unichain:usdc,
unichain:wbtc
to
required
Available options:
arbitrum:usdc,
arbitrum:wbtc,
arbitrum:seed,
base:cbbtc,
base:usdc,
bera:lbtc,
bitcoin:btc,
bnbchain:bnb,
bnbchain:btcb,
bnbchain:usdc,
botanix:btc,
core:wbtc,
corn:btcn,
ethereum:cbbtc,
ethereum:wbtc,
ethereum:seed,
ethereum:usdc,
ethereum:eth,
hyperliquid:ubtc,
solana:sol,
solana:usdc,
solana:cbbtc,
starknet:wbtc,
sui:sui,
unichain:usdc,
unichain:wbtc
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%.

Response

200 - application/json

Quote information.

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