Returns the best swap quote for a pair of tokens and an input amount from the nexroute routing engine.
API key for authentication
Input token contract address (0x-prefixed, 40 hex characters)
^0x[a-fA-F0-9]{40}$"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"
Output token contract address (0x-prefixed, 40 hex characters)
^0x[a-fA-F0-9]{40}$"0x55d398326f99059fF775485246999027B3197955"
Input amount in wei (uint256 as decimal string, must be > 0)
^[1-9]\d*$"1000000000000000000"
Successful quote response
Output amount in wei (uint256 as decimal string)
"8643194859422640072"
Estimated gas cost
237995
Calldata for the swap transaction
"0x8f01f039..."
Router contract address to call
"0x365193e7e200CC2Ce82eb67DB0Fed117F8C7c660"
Spender address for token approval
"0x365193e7e200CC2Ce82eb67DB0Fed117F8C7c660"