GET /v1/indicative-quote
Get amount out for selling a ERC20 / native token.
This endpoint provides amount of token out Native quote given the requested token and token amount. Native routing optimises for the best price among on-chain aggregator and private market makers.
Native supports native token swap. Use 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE to represent the token address of the native token.
Headers
apiKey
Contact Native to get your API key.
Params
chain
Blockchain name. Supported chains: ethereum, bsc
token_in
Token address for the token to be sold.
token_out
Token address for the token to be bought.
amount
Amount of token to be sold, in ether unit.
address
Address of the user making the swap.
Example
In this example, wallet 0x42d4e9ee3f725c84b7934e4fda64f2be0f803130 requests quote for swapping 1 ETH to USDT on Ethereum.
Response
In the response above, Native returns 1,839.7184 USDT for the order sent in the example.
Last updated