v1
latestOpenAPI 3.1.02026-08-0466147138.0 KBExecution
Get routes for a withdrawal
This is the first of two steps for a withdrawal flow. After providing relevant options as input, this endpoint will return a number of possible routes. The selected route should be used as input for the /withdraw/start endpoint.
post/withdraw/calculate
Request body
Example request
[
{
"bridge_slippage": 50,
"exclude_ambs": [],
"exclude_bridges": [],
"exclude_dexes": [],
"exclude_liquidity_providers": [],
"positive_slippage": 100,
"refund_address": "0xB9Ff2b5Ce562b79825Ca2e9003D1d548C6a698d9",
"route_type": "output",
"superform_id": "6277101737206669028000504059097845015423773220595131737620",
"superpositions_amount_in": "3881289106529881",
"superpositions_chain_id": 10,
"swap_slippage": 50,
"to_chain_id": 42161,
"to_token_address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"user_address": "0xB9Ff2b5Ce562b79825Ca2e9003D1d548C6a698d9"
}
]Response
OK