v1
latestOpenAPI 3.1.02026-08-04751,1671.3 MBSwaps
Predict Transaction
Simulate the spot swap and changes in token balances, in addition to the fee estimation.
post/api/v1/swaps/predict
Request body
Example request
{
"input_asset_identifier": {
"details": {
"token": {
"base58_repr": "4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"
}
}
},
"output_asset_identifier": {
"details": {
"token": {
"base58_repr": "4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"
}
}
},
"amount": "1000000000000000000",
"slippage_bps": "1000000000000000000",
"fee": {
"details": {
"gas_limit": "1000000000000000000"
}
}
}Response
Successful Response