跳转到主要内容
GET
/
quote
Get swap quote
curl --request GET \
  --url https://raptor-beta.solanatracker.io/quote
{
  "inputMint": "<string>",
  "outputMint": "<string>",
  "amountIn": "<string>",
  "amountOut": "<string>",
  "minAmountOut": "<string>",
  "feeAmount": "<string>",
  "priceImpact": 123,
  "slippageBps": 123,
  "routePlan": [
    {
      "programId": "<string>",
      "dex": "<string>",
      "pool": "<string>",
      "inputMint": "<string>",
      "outputMint": "<string>",
      "amountIn": "<string>",
      "amountOut": "<string>",
      "feeAmount": "<string>",
      "priceImpact": 123,
      "percent": 123
    }
  ],
  "contextSlot": 123,
  "timeTaken": 123,
  "swapUsdValue": "<string>",
  "priorityFee": {
    "recommended": 123,
    "level": "<string>",
    "levels": {
      "min": 123,
      "low": 123,
      "medium": 123,
      "high": 123,
      "veryHigh": 123,
      "unsafeMax": 123
    }
  },
  "platformFee": {
    "feeBps": 123,
    "feeAccount": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.solanatracker.io/llms.txt

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

查询参数

inputMint
string
必填

Input token mint address

outputMint
string
必填

Output token mint address

amount
integer
必填

Input amount in lamports

必填范围: x >= 1
slippageBps
string
默认值:50

Slippage in basis points or 'dynamic'

dexes
string

Comma-separated list of DEXes to include

pools
string

Comma-separated list of specific pool addresses

maxHops
integer
默认值:4

Maximum routing hops

必填范围: 1 <= x <= 4
feeBps
integer
默认值:0

Platform fee in basis points

必填范围: 0 <= x <= 1000
feeFromInput
boolean
默认值:false

Take fee from input amount

chargeBps
integer
默认值:0

Extra charge on positive slippage

必填范围: x >= 0
feeAccount
string

Fee recipient wallet address

响应

Successful quote response

inputMint
string
必填

Input token mint address

outputMint
string
必填

Output token mint address

amountIn
string
必填

Input amount in lamports

amountOut
string
必填

Expected output amount in lamports

minAmountOut
string
必填

Minimum output amount after slippage

feeAmount
string
必填

Total fees paid in lamports

priceImpact
number
必填

Price impact percentage

slippageBps
integer
必填

Slippage used in basis points

routePlan
object[]
必填

Array of routing steps

contextSlot
integer
必填

Solana slot when quote was generated

timeTaken
number
必填

Time taken to generate quote in seconds

swapUsdValue
string

USD value of the input amount

priorityFee
object
platformFee
object