Swaps

swaps

Domain types

SwapDestination = { asset_address, caip2, destination_address }

The output side of a swap execution request.

SwapQuoteDestination = { asset_address, caip2, destination_address }

The output side of a swap quote request.

SwapQuoteRequestBody = { base_amount, destination, source, 3 more... }

Input for requesting a token swap quote.

SwapQuoteResponse = { caip2, est_output_amount, gas_estimate, 8 more... }

Pricing data for a token swap.

SwapRequestBody = { base_amount, destination, source, 3 more... }

Input for executing a token swap.

SwapSource = { asset_address, caip2 }

The input side of a swap request, including token and chain.