v1
latestOpenAPI 3.1.02026-07-24130315342.2 KBSwap Endpoints
Execute a token swap
Get executable transactions for token-to-token swaps. Supports same-chain and cross-chain swaps with multiple from/to assets.
post/api/v2/swap/execute
Request body
Example request
{
"from_assets": [
{
"chain": "ethereum",
"contract": "0x0000000000000000000000000000000000000000"
}
],
"to_assets": [
{
"chain": "ethereum",
"contract": "0x0000000000000000000000000000000000000000"
}
],
"address": "0x1234567890abcdef1234567890abcdef12345678",
"slippage_tolerance": 0.01
}Response
Swap execution data retrieved successfully