v1

latestOpenAPI 3.0.02026-07-17243469.7 KB
Server

post/v2/build-tx

Headers

API-KEYstring

Request body

Example request

{
  "route": {
    "routeId": "6a4c26b6-b008-431d-a37c-028e0b30482b",
    "fromAmount": "100000000000000000000",
    "toAmount": "100000000000000000000",
    "totalUserTx": 3,
    "totalGasFeesInUsd": 125.4,
    "sender": "0x3e8cB4bd04d81498aB4b94a392c334F5328b237b",
    "serviceTime": 600
  }
}

Response

Get the tx details for the route.

successboolean required

Status of API.

Example response

{
  "success": true,
  "result": {
    "userTxType": "dex-swap",
    "txTarget": "0x3e8cB4bd04d81498aB4b94a392c334F5328b237b",
    "txData": "0xasjajfbalkfajfalalglaglagbalga",
    "txType": "eth_sendTransaction",
    "value": "10000000000000000",
    "totalUserTx": 2,
    "approvalData": {
      "minimumApprovalAmount": "10000000000000000",
      "approvalTokenAddress": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
      "allowanceTarget": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
      "owner": "0x3e8cB4bd04d81498aB4b94a392c334F5328b237b"
    }
  }
}