Post api swap
POST building an unsigned swap transaction
Path Parameters
Blockchain served by this service.
tron Body
Wallet that signs the transaction and receives the output.
Quote path: data of the quote response can be passed as is. Only
addressTokenIn, addressTokenOut and amountIn are used; the route is
quoted again on the current pool state.
Source wallet. On Tron the signer receives the output, so when set it
must be the same address as dstAddress.
Slippage in bps for minReturnAmountOut (not below the service minimum,
50 bps).
x >= 0Response
Swap call and unsigned transaction
Expected output of the route the transaction was built for.
Calldata of the call (selector + ABI arguments), 0x-prefixed hex
Fee limit of the transaction, in SUN
x >= 0Minimum amount to receive in destination token's smallest units.
Contract called by the transaction (transaction to)
Unsigned transaction from the node (/wallet/triggersmartcontract
response, same as unsigned_tx of POST /api/swap): sign and broadcast
its transaction.
TRX attached to the call (callValue), in SUN
Address that the user must approve for TRC-20 spending. Null when the input token is native TRX or for TRX <-> WTRX.