swap-get-rate

GET {{wallet-api-endpoint}}/api/swaps/rates?fromSecretType=ETHEREUM&toSecretType=ETHEREUM&fromToken=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee&toToken=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&amount=1&orderType=SELL

This endpoint returns information about the expected result of the swap. It provides the expected output amount, as well gives information about the slippage and fee involved for that specific swap.

Request Params

KeyDatatypeRequiredDescription
fromSecretTypestring
toSecretTypestring
fromTokenstring
toTokenstring
amountnumber
orderTypestring