Request a quote from a given provider for swapping assets. This is the first step of the Swap flow.
CustomerEmployee)EndUser)Bearer Token: Used to authenticate API requests. More details how to generate the token: Authentication flows
Swap provider.
UniswapX, UniswapClassic Id of the Dfns wallet spending the sourceAsset.
1 - 64"wa-5pfuu-9euek-h0odgb6snva8ph3k"
The source asset that will be spent on the Swap transaction, following the same stucture as the transfer API.
The target asset that will be received with the Swap transaction, follows the same structure as sourceAsset, but doesn't include the amount.
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%.
Id of the Dfns wallet receiving the target asset. Currently this value must be the same as the walletId.
1 - 64"wa-5pfuu-9euek-h0odgb6snva8ph3k"
Success
ID of the Swap Quote.
1 - 64"swapQuote-7n9p0-cth75-6l74n2sj7u73ooeq"
Id of the Dfns wallet spending the sourceAsset.
1 - 64"wa-5pfuu-9euek-h0odgb6snva8ph3k"
Swap provider.
UniswapX, UniswapClassic The source asset that will be spent on the swap transaction.
The target asset that will be received with the swap transaction.
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%.
The full request used for obtaining this quote.
If not provided, the walletId is used as the target wallet. If provided, this field is currently required to be the same as walletId
1 - 64"wa-5pfuu-9euek-h0odgb6snva8ph3k"