Skip to main content
POST
Submits a declarative swap transaction for processing
Most builders use GET /order, which returns a fully constructed transaction in one call. POST /submit-intent is the second step of the opt-in intent flow for builders who need stronger sandwich resistance on standard SPL pairs: pair it with GET /intent. Token-2022 mints are not supported on this flow; use GET /order for those.

Authorizations

x-api-key
string
header
required

API key for authentication. Contact hello@dflow.net to obtain an API key.

Body

application/json
quoteResponse
object
required

The response from the quote endpoint

signedOpenTransaction
string
required

Base64-encoded intent opening transaction, signed by the user

Response

Declarative swap submitted successfully

openTransactionSignature
string
required

Base58-encoded open transaction signature

orderAddress
string
required

Base58-encoded order address

programId
string
required

Base58-encoded program ID of the program that facilitates the swap