Start Swap
start_swapStart a cross-chain swap. Returns the deposit address where you should send your source asset. API key is optional.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | No | Optional partner API key. | |
| sourceAsset | Yes | Source asset identifier (e.g., 'btc.btc', 'eth.eth', 'usdc.eth') | |
| minimumPrice | No | Optional minimum accepted price as a destination-per-source ratio (e.g., for a btc.btc to eth.eth swap, 28.5 means 1 BTC gets at least 28.5 ETH). When omitted, automatically calculated from current pool prices with 2% slippage tolerance. Set to 0 to accept any price. | |
| refundAddress | Yes | Refund address on the source chain, used if minimum price cannot be met | |
| destinationAsset | Yes | Destination asset identifier (e.g., 'eth.eth', 'btc.btc', 'sol.sol') | |
| destinationAddress | Yes | Destination address on the target chain |