Swaps API
Reference for the DFNS Swaps API, which lets you execute token swaps across supported EVM chains through integrated providers like Uniswap.
Flow Overview
- Request a Quote: Retrieve estimated output amounts for a given swap (input token and amount, output token, provider and slippage tolerance).
- Submit the swap intent: Submit a request to Swap, based on the
quoteId - Approve policies: If using Wallet:Sign policies, review the transactions and approve them, due to the nature of a Swap transaction, you might be required to approve up to 4 signatures/transactions.
- Track Status: Monitor the Swap execution.
Swap object
The slippage tolerance for this trade in basis point (BPS). Slippage tolerance defines the maximum price difference you are willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%.
ISO 8601 date (must be UTC). When the swap was initiated.
Provider-specific intermediate state, only set while status is InProgress. Values are opaque strings — clients map them to progress bars, labels or icons as needed. For CCTP one of: signing-permit, burning-source, awaiting-source-finality, awaiting-attestation, awaiting-forwarder. Undefined for providers without intermediate sub-states.