Skip to main content
GET
/
v2
/
get-quote
Get a gateway quote.
curl --request GET \
  --url https://gateway-api-mainnet.gobob.xyz/v2/get-quote
{
  "onramp": {
    "dstChain": "<string>",
    "dstToken": "<string>",
    "executionFees": {
      "address": "<string>",
      "amount": "<string>",
      "chain": "<string>",
      "usd": "<string>"
    },
    "feeBreakdown": {
      "affiliateFee": {
        "address": "<string>",
        "amount": "<string>",
        "chain": "<string>",
        "usd": "<string>"
      },
      "executionFee": {
        "address": "<string>",
        "amount": "<string>",
        "chain": "<string>",
        "usd": "<string>"
      },
      "layerzeroFee": {
        "address": "<string>",
        "amount": "<string>",
        "chain": "<string>",
        "usd": "<string>"
      },
      "protocolFee": {
        "address": "<string>",
        "amount": "<string>",
        "chain": "<string>",
        "usd": "<string>"
      },
      "solverFee": {
        "address": "<string>",
        "amount": "<string>",
        "chain": "<string>",
        "usd": "<string>"
      }
    },
    "fees": {
      "address": "<string>",
      "amount": "<string>",
      "chain": "<string>",
      "usd": "<string>"
    },
    "inputAmount": {
      "address": "<string>",
      "amount": "<string>",
      "chain": "<string>",
      "usd": "<string>"
    },
    "outputAmount": {
      "address": "<string>",
      "amount": "<string>",
      "chain": "<string>",
      "usd": "<string>"
    },
    "recipient": "<string>",
    "signedQuoteData": "<string>",
    "slippage": "<string>",
    "token": "<string>",
    "affiliateAddress": "<string>",
    "affiliates": [
      {
        "address": "<string>",
        "fee": {
          "address": "<string>",
          "amount": "<string>",
          "chain": "<string>",
          "usd": "<string>"
        }
      }
    ],
    "estimatedTimeInSecs": 1,
    "gasRefill": "<string>",
    "priceImpact": "<string>",
    "priceImpactUsd": "<string>",
    "sender": "<string>",
    "strategyAddress": "<string>",
    "strategyMessage": "<string>"
  }
}

Query Parameters

srcChain
string
required

Source chain

dstChain
string
required

Destination chain

sender
string

Address sending the funds

recipient
string
required

Address receiving the funds

srcToken
string
required

Source token address

dstToken
string
required

Destination token address

amount
string
required

Amount to swap (in smallest unit, e.g., sats or wei)

gasRefill
string

Optional gas refill amount (in smallest unit, e.g., wei)

slippage
string
required

Slippage tolerance (in basis points, e.g., 300 = 3%)

strategyTarget
string
strategyMessage
string
affiliates
string

Comma-separated list of <address>:<bps> pairs, e.g. 0xf39F…:50,0x70997…:25. Omit or send an empty string for no affiliate fees. Max [intents::MAX_AFFILIATES] entries; total bps MUST NOT exceed [intents::MAX_AFFILIATE_TOTAL_BPS]; each bps MUST be > 0.

Response

Get a quote

Gateway quote.

onramp
object
required

V2 onramp quote: identical to V1 plus a resolved affiliates list. Kept as a separate type so the V1 OpenAPI schema stays frozen.