Skip to main content
We highly recommand using Mayan SDK for integration as it simplfies the integration process. Before performing a swap we need find the best route and get the swap rate for the token pair using quote API.

API Reference

Swagger UI

Example:

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:

Request:

List of request parameters:

Response:

Response fields:

The following table shows the common fields of response:

Supported Tokens

Mayan is an intent-based protocol and supports any token as input or output, provided there is sufficient liquidity on the source or destination chains. We also maintain an approved, whitelisted token list for convenience:

Swagger UI

Example:

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

Supported Chains

GET sia.mayan.finance/v6/init

Returns configuration for every supported chain, including whether it can be used as a origin or destination** **chain.

Example:

This endpoint provides a JSON response containing a comprehensive list of all chains supported by the platform. Each chain entry includes detailed metadata such as the chain’s name, chain ID, and other relevant attributes. Two key fields indicate the chain’s functionality within the platform:
  • originActive: Specifies whether the chain is supported as a source chain.
  • destinationActive: Specifies whether the chain is supported as a destination chain.
Use this endpoint to determine compatibility and availability of specific chains for your operations.