Create Swap
Create a new swap based on an existing quote. This is the second step of the Swap flow.
Authentication
✅ Organization User (CustomerEmployee)❌ Delegated User (
EndUser)✅ Service Account
Required Permissions
Swaps:Create: Always required.Authorizations
Bearer Token: Used to authenticate API requests. More details how to generate the token: Authentication flows
User Action Signature: Used to sign the change-inducing API requests. More details how to generate the token: User Action Signing flows
Body
- UniswapClassic Swap Request
- UniswapX Swap Request
- CircleCctp Swap Request
UniswapClassic Quote to use for this swap.
1 - 64^swapQuote-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"swapQuote-7n9p0-cth75-6l74n2sj7u73ooeq"
Id of the Dfns wallet spending the sourceAsset. Used for attesting that the swap is being created with the same parameters as the quote.
1 - 64^wa-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"wa-5pfuu-9euek-h0odgb6snva8ph3k"
The source asset that will be spent on the Swap transaction. Used for attesting that the swap is being created with the same parameters as the quote.
- Native Asset
- EVM Fungible Token (ERC-20)
- Solana Fungible Token (SPL)
The target asset that will be received with the Swap transaction. Used for attesting that the swap is being created with the same parameters as the quote.
- Native Asset
- EVM Fungible Token (ERC-20)
- Solana Fungible Token (SPL)
The slippage tolerance for this trade in basis point (BPS). Slippage tolerance defines the maximum price difference you're 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%.
0 <= x <= 10000An optional reference for this Swap.
Id of the Dfns wallet receiving the target asset. Currently this value must be the same as the walletId. Used for attesting that the swap is being created with the same parameters as the quote.
1 - 64^wa-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"wa-5pfuu-9euek-h0odgb6snva8ph3k"
Response
Success
Swap id.
1 - 64^swap-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"swap-5ch70-fc3n7-3k2cbo8d7q5lnts4"
Id of the quote this swap is based on.
1 - 64^swapQuote-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"swapQuote-7n9p0-cth75-6l74n2sj7u73ooeq"
Optional user-defined reference for this Swap.
Id of the Dfns wallet spending the sourceAsset.
1 - 64^wa-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"wa-5pfuu-9euek-h0odgb6snva8ph3k"
Id of the Dfns wallet receiving the target asset. Currently this value must be the same as the walletId.
1 - 64^wa-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"wa-5pfuu-9euek-h0odgb6snva8ph3k"
Swap status.
PendingPolicyApproval, InProgress, Completed, Failed, Rejected Swap provider.
UniswapX, UniswapClassic, CircleCctp The source asset for this swap transaction.
- Native Asset
- EVM Fungible Token (ERC-20)
- Solana Fungible Token (SPL)
The target asset for this swap transaction.
- Native Asset
- EVM Fungible Token (ERC-20)
- Solana Fungible Token (SPL)
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%.
The full request used for initiating this swap.
- UniswapClassic Swap Request
- UniswapX Swap Request
- CircleCctp Swap Request
- Option 4
The user who initiated the request.
The failure reason, if any. Only present when status is Failed.
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.