Chainflip Broker as a Service
v1.1.0Native cross-chain swaps: Bitcoin, Ethereum, Solana, Polkadot, Tron, Arbitrum.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_quotes Get Quotes
Get swap quotes for exchanging one crypto asset to another. Returns available quotes with exchange rates, fees, and estimated output amounts. API key is optional.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Amount to swap in human-readable format (e.g., 1.5 for 1.5 BTC) |
destinationAsset * | string | Destination asset identifier (e.g., 'eth.eth', 'btc.btc', 'sol.sol') |
sourceAsset * | string | Source asset identifier (e.g., 'btc.btc', 'eth.eth', 'usdc.eth') |
apiKey | string | null | Optional partner API key. |
start_dca_swap Start DCA Swap
Start a DCA (Dollar Cost Averaging) cross-chain swap that splits into multiple sub-swaps over time. Returns the deposit address. API key is optional.
| Parameter | Type | Description |
|---|---|---|
destinationAddress * | string | Destination address on the target chain |
destinationAsset * | string | Destination asset identifier (e.g., 'eth.eth', 'btc.btc', 'sol.sol') |
numberOfChunks * | integer | Number of sub-swaps for DCA (Dollar Cost Averaging). Must be >= 1. |
refundAddress * | string | Refund address on the source chain, used if minimum price cannot be met |
sourceAsset * | string | Source asset identifier (e.g., 'btc.btc', 'eth.eth', 'usdc.eth') |
apiKey | string | null | Optional partner API key. |
chunkIntervalBlocks | integer | null | Optional delay between DCA sub-swaps in state-chain blocks (1 block = 6 seconds). Defaults to 2 blocks (12 seconds). |
livePriceSlippageTolerancePercent | number | null | Optional live price protection: how far, in percent (0 to 100, at most 2 decimals, e.g. 0.5), the execution price may fall below Chainflip's oracle price before a sub-swap is retried and the rest refu… |
minimumPrice | number | null | 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 po… |
check_status Check Status
Check the status of a swap by its ID. Returns the current swap state including deposit detection, swap progress, and egress information.
| Parameter | Type | Description |
|---|---|---|
swapId * | integer | The swap ID returned by start_swap or start_dca_swap |
list_assets List Assets
List all available swap assets and their details including ticker, network, direction, decimals, minimum amounts, and current USD prices.
start_swap Start Swap
Start a cross-chain swap. Returns the deposit address where you should send your source asset. API key is optional.
| Parameter | Type | Description |
|---|---|---|
destinationAddress * | string | Destination address on the target chain |
destinationAsset * | string | Destination asset identifier (e.g., 'eth.eth', 'btc.btc', 'sol.sol') |
refundAddress * | string | Refund address on the source chain, used if minimum price cannot be met |
sourceAsset * | string | Source asset identifier (e.g., 'btc.btc', 'eth.eth', 'usdc.eth') |
apiKey | string | null | Optional partner API key. |
livePriceSlippageTolerancePercent | number | null | Optional live price protection: how far, in percent (0 to 100, at most 2 decimals, e.g. 0.5), the execution price may fall below Chainflip's oracle price before the swap is retried and then refunded.… |
minimumPrice | number | null | 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 po… |
get_native_quotes Get Native Quotes
Get swap quotes for exchanging one crypto asset to another using native (smallest unit) amounts. Returns available quotes with exchange rates, fees, and estimated output amounts. Use this when you have amounts in native units (e.g., satoshis for BTC, wei for ETH). API key is optional.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Amount to swap in native units (e.g., '100000000' for 1 BTC in satoshis) |
destinationAsset * | string | Destination asset identifier (e.g., 'eth.eth', 'btc.btc', 'sol.sol') |
sourceAsset * | string | Source asset identifier (e.g., 'btc.btc', 'eth.eth', 'usdc.eth') |
apiKey | string | null | Optional partner API key. |