v1

latestOpenAPI 3.0.32026-07-24707482.9 KB
Swaps

Record an executed swap transaction

post/swaps

Request body

tokenInstring required
tokenOutstring required
amountInstring required
amountOutEstimatedstring required
amountOutMinstring required
amountOutActualstring
slippageBpsinteger required
routeTokensstring[] required
encodedPathstring required
walletAddressstring required
txHashstring

Example request

{
  "walletAddress": "0xAbCd1234AbCd1234AbCd1234AbCd1234AbCd1234"
}

Response

Swap recorded

idstring required
userIdstring required
tokenInstring required
tokenOutstring required
amountInstring required
amountOutEstimatedstring required
amountOutMinstring required
amountOutActualstring
slippageBpsinteger required
routeTokensstring[] required
encodedPathstring required
walletAddressstring required
txHashstring
status'initiated' | 'completed' | 'failed' | 'unknown' required
failureReasonstring
createdAtstring date-time required
updatedAtstring date-time required

Example response

{
  "walletAddress": "0xAbCd1234AbCd1234AbCd1234AbCd1234AbCd1234"
}