v1

latestOpenAPI 3.0.0raw.githubusercontent.com2026-04-107095124.5 KB
Swap endpoints

Retrieves swap quotes

Retrieves swap quotes for a specified token pair

get/public/{address}/swap

Path parameters

addressstring required

The wallet address initiating the swap

Query parameters

fromChainstring

The source token chain. Must be one of the supported chains (Bitcoin, Ethereum, Polygon, Base or Solana)

fromTokenstring

The source token contract address or ticker symbol. Contract address recommended.

fromTokenAmountstring

The desired swap amount, specified in token currency. A value in fromTokenAmount is prioritized over fromTokenAmountUsd.

fromTokenAmountUsdstring

The desired swap amount, specified in US Dollars. A value in fromTokenAmount is prioritized over fromTokenAmountUsd.

toChainstring

The destination token chain. Must be one of the supported chains (Bitcoin, Ethereum, Polygon, Base or Solana)

toTokenstring

The destination token contract address or ticker symbol. Contract address recommended.

toWalletAddressstring

(Optional) The destination wallet address for the swap funds. Defaults to source address if empty.

Response

The requested swap quotes

durationnumber
gasstring
gasUsdstring