DFlow Swap API Documentation
Imperative Swap API Endpoints
Declarative Swap API Endpoints
Token API Endpoints
Submit Intent Swap
Body
The response from the quote endpoint
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.
x > 0
Maximum input amount as a scaled integer. For example, 1 SOL is 1000000000.
Base58-encoded input mint address
Same as other_amount_threshold
Minimum output amount after all fees as a scaled integer. If the swap transaction doesn't produce at least this amount of the output token, the transaction will fail.
Expected output amount after all fees as a scaled integer. For example, 1 SOL is 1000000000.
Base58-encoded output mint address
Price impact of the swap. This is an estimate of the percentage difference between the expected price for the swap and the price for the same swap with the smallest input amount possible. For example, "0.01" means 1% price impact.
Max allowed slippage % in basis points
x > 0
The expiry of the intent. After expiry, the intent cannot be filled and can only be closed. Specified if and only if the request included the user's public key.
The intent will expire after the specified number of slots have passed since the open transaction was processed. For example, if the open transaction was processed in slot 100, a value of 10 means the intent will be fillable through slot 110. After slot 110, the intent will no longer be fillable.
x > 0
The last block height at which the blockhash assigned to the open transaction is valid. Useful to determine whether the open transaction has expired. Specified if and only if the request included the user's public key.
x > 0
Base64-encoded intent opening transaction. The user must sign before sending it via the swap endpoint. Specified if and only if the request included the user's public key.
Platform fee that was applied to the quote, if any
Platform fee as a scaled integer. For example, 1 SOL is 1000000000.
Token account that will receive the platform fee
Platform fee in basis points
x > 0
Segmenter fee as a scaled integer. For example, 1 SOL is 1000000000.
Segmenter fee in percent
x > 0
Base64-encoded intent opening transaction, signed by the user