GET
/
intent
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

Base58-encoded address of the swapper's wallet. If specified, the response will include a transaction allowing the user to submit the intent.

inputMint
string
required

Base58-encoded input mint address

outputMint
string
required

Base58-encoded output mint address

amount
integer
required

Input amount as a scaled integer. For example, 1 SOL is 1000000000.

Required range: x >= 0
slippageBps
integer

Max allowed slippage % in basis points

Required range: x >= 0
platformFeeBps
integer

Optional platform fee in basis points. This is taken out of the output of the swap.

Required range: x >= 0
segmenterFeePct
integer

Optional segmenter fee in percent. This is taken out of the improvement in output quantity if the swap is routed through conditional liquidity.

Required range: x >= 0
feeAccount
string

Base58-encoded address of the token account that will receive the platform fee if a platform fee applies to the swap. If specified, this account's mint must match the output mint for the swap.

referralAccount
string

Base58-encoded address of the referral account associated with the fee account. If the fee account isn't a referral token account derived from the seeds ["referral_ata", referral_account, mint] and the Referral program ID REFER4ZgmyYx9c6He5XfaTMiGfdLwRnkV4RPp9t9iF3, this should be unspecified. If specified, the the intent opening transaction will create the fee_account if it doesn't already exist. The user pays for the creation of the fee account. Ignored if fee_account is unspecified.

wrapAndUnwrapSol
boolean

If false, the intent will use wrapped SOL

feeBudget
integer

Maximum amount that the user is willing to pay to have the intent processed in lamports. This includes all transaction fees and tips for the open transaction and all transaction fees and tips for the fill and close transactions. If unspecified, the server will determine the fee budget.

Required range: x >= 0

Response

200
application/json

Declarative swap quote

The response is of type object.