Id of the Dfns wallet receiving the targetAsset. Currently this value must be the same as the walletId
String
provider*
Required
The Swap provider, either "UniswapClassic" or "UniswapX"
String
sourceAsset*
Required
The source asset that will be spent on the Swap transaction, following the same stucture as the transfer API
Object
targetAsset*
Required
The target asset that will be received with the Swap transaction, follows the same structure as sourceAsset, but doesn't include the amount
Object
slippageBps*
Required
The slippage tolerance for this trade. Slippage tolerance defines the maximum price movement you're willing to accept during a trade, ensuring you still receive at least a minimum number of tokens if the price shifts.