Skip to main content
GET
/
intent
Returns a quote for a declarative swap
curl --request GET \
  --url https://quote-api.dflow.net/intent
{
  "expiry": {
    "slotsAfterOpen": 1
  },
  "feeBudget": 1,
  "inAmount": "<string>",
  "inputMint": "<string>",
  "lastValidBlockHeight": 1,
  "minOutAmount": "<string>",
  "openTransaction": "<string>",
  "otherAmountThreshold": "<string>",
  "outAmount": "<string>",
  "outputMint": "<string>",
  "platformFee": null,
  "priceImpactPct": "<string>",
  "slippageBps": 1
}

Query Parameters

userPublicKey
string
inputMint
string
required
outputMint
string
required
amount
integer
required
Required range: x >= 0
slippageBps
Required range: x >= 0
platformFeeBps
integer
Required range: x >= 0
feeAccount
string
referralAccount
string
wrapAndUnwrapSol
boolean
feeBudget
integer
Required range: x >= 0
maxAutoFeeBudget
integer
Required range: x >= 0

Response

feeBudget
integer
required
Required range: x >= 0
inAmount
string
required
inputMint
string
required
minOutAmount
string
required
otherAmountThreshold
string
required
outAmount
string
required
outputMint
string
required
priceImpactPct
string
required
slippageBps
integer
required
Required range: x >= 0
expiry
object
lastValidBlockHeight
integer
Required range: x >= 0
openTransaction
string
platformFee
object | null