DFlow Swap API Documentation
Imperative Swap API Endpoints
Declarative Swap API Endpoints
Token API Endpoints
Declarative Swap API Endpoints
Submit Intent Swap
POST
/
submit-intent
Copy
curl --request POST \
--url https://quote-api.dflow.net/submit-intent \
--header 'Content-Type: application/json' \
--data '{
"quoteResponse": {
"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
},
"signedOpenTransaction": "<string>"
}'
Copy
{
"openTransactionSignature": "<string>",
"orderAddress": "<string>",
"programId": "<string>"
}
Body
application/json
Response
200
application/json
Declarative swap submitted successfully
The response is of type object
.
Copy
curl --request POST \
--url https://quote-api.dflow.net/submit-intent \
--header 'Content-Type: application/json' \
--data '{
"quoteResponse": {
"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
},
"signedOpenTransaction": "<string>"
}'
Copy
{
"openTransactionSignature": "<string>",
"orderAddress": "<string>",
"programId": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.