v1
latestOpenAPI 3.0.02026-07-17243469.7 KBRoutes
Function that takes in a route and starts the selected route. Function is responsible for
- Saving the selected route to bridge tokens from one chain to another.
- Saving the fromChain, toChain, and fromAsssetAddress and toAssetAddress
- Returns the Active Route Id, Current Tx, Total number of txs, txType
post/v2/route/start
Headers
API-KEYstring
Request body
Example request
{
"fromAssetAddress": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
"toAssetAddress": "0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3",
"includeFirstTxDetails": true,
"route": {
"routeId": "6a4c26b6-b008-431d-a37c-028e0b30482b",
"fromAmount": "100000000000000000000",
"toAmount": "100000000000000000000",
"totalUserTx": 3,
"totalGasFeesInUsd": 125.4,
"sender": "0x3e8cB4bd04d81498aB4b94a392c334F5328b237b",
"serviceTime": 600
}
}Response
Starts the Active Route and gives back the data to start the route
Example response
{
"approvalData": {
"minimumApprovalAmount": "10000000000000000",
"approvalTokenAddress": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
"allowanceTarget": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
"owner": "0x3e8cB4bd04d81498aB4b94a392c334F5328b237b"
}
}