Swaps
Get Quotes
Changed onGet available quotes for a swap between two assets.
post/api/v1/swaps/quotes
Request
- Base URL: https://api.fordefi.com
- URL: https://api.fordefi.com/api/v1/swaps/quotes
- Auth: HTTP bearer
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"
}Response
Successful Response
Changes
- warning
added the new
near_intentsenum value to the///response property for the response status - warning
added the new
near_intentsenum value to the////response property for the response status - info
added the new
near_intentsenum value to the request property/
- warning
- info
added the optional property
to the response with the status
- info