Quote API

Before performing a swap we need find the best route and get the swap rate for the token pair using quote API.

API Reference


The request to get the quote for swapping BNB tokens from Binance Smart Chain (BSC) to receive USDC tokens on Solana would be like this:


curl 'https://price-api.mayan.finance/v3/quote?amountIn=5&fromToken=0x0000000000000000000000000000000000000000&fromChain=bsc&toToken=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&toChain=solana&slippage=0.05&gasDrop=0.001'



Token List

You can get list of supported tokens using Token API:


curl -X 'GET' \
  'https://price-api.mayan.finance/v3/tokens?chain=solana' \
  -H 'accept: application/json'

To get the aggregated list of tokens from all chains remove chain from in the query .

Chain List

To get the list of supported chains you can use Chain API:


curl -X 'GET' \
  'https://price-api.mayan.finance/v3/chains' \
  -H 'accept: application/json'

Last updated