Symbiosis API

Symbiosis API | Symbiosis Finance | Swagger

What is the Symbiosis API?

The Symbiosis API allows you to integrate the core functionalities of the Symbiosis Protocol into your application, platform, or protocol. It provides decentralized cross-chain swaps and liquidity management, enabling users to interact with multiple blockchain networks without intermediaries.

Symbiosis Protocol Features Available via the API

The Symbiosis API provides access to the following cross-chain and on-chain operations:

  1. Swaps:

    1. Cross-chain swaps – Swap any token across supported blockchain networks. In short: Symbiosis: Cross-Chain Swaps

    2. On-chain swaps – Swap any token pair on a supported network.

  2. Interchain communication – Transfer tokens to third-party protocols. In short: Symbiosis as Interchain Communication Protocol

  3. Cross-chain zapping – Zap any token into a Symbiosis-managed liquidity pool. In short: Cross-Chain Zaps

  4. Bridging – Mint or burn tokens to transfer assets across chains. In short: Symbiosis Mint-Burn Process

  5. Cross-chain operation status tracking – Retrieve real-time transaction status updates.

  6. Emergency handling:

    1. Retrieve a list of stuck cross-chain operations.

    2. Generate calldata for reverting transactions.

    In short: Symbiosis & Emergencies

Note Any token & any token pair refer to tokens that can be exchanged on supported DEXs within blockchain networks supported by the Symbiosis Protocol.

Checklist Before Going to Production (Mainnet)

Warning: If any of these checks fail, you put the assets of your users at risk. Therefore, you must not go to Mainnet with real assets and real users. This could result in the loss of your users' assets.

  1. Approval of ERC20 Tokens: Always approve users' ERC20 tokens for only one contract — the metaRouterGateway — on each blockchain. Verify the contract addresses for all supported blockchains in this configuration.

  2. Contract Existence and Address Validation: Ensure that the contracts used in your integration are deployed on the respective blockchains, and that their addresses on each blockchain match those listed in this configuration.

  3. Handling of Calldata: Do not modify, reuse, or cache calldata retrieved from Symbiosis SDKs or API methods.

  4. Testing: After deployment to Mainnet, conduct at least one cross-chain operation to ensure proper functionality.

Reminder: Perform this checklist during the initial deployment and after every software update.

Understanding the Symbiosis Protocol

The key components for understanding the Symbiosis Protocol include:

Supported Blockchains and Tokens

Supported Blockchains

Chain-specific values (chain IDs, etc.) can be found in the following configuration:

You can also retrieve a list of currently supported blockchains using the /v1/chains endpoint.

Supported Tokens

Using the Symbiosis API, you can operate any token that exists and can be exchanged in DEXs within the blockchains supported by the Symbiosis Protocol. There are no restrictions on the tokens to operate, and you may define your own list of supported tokens if needed.

Swagger API Documentation

The Symbiosis API documentation, powered by Swagger, provides an interactive way to explore and test all endpoints:

Note on Testnet: While a Testnet environment exists for testing purposes, functionality verified on Testnet does not guarantee the same behavior on Mainnet. We strongly recommend testing directly on Mainnet using low-cost networks and small token amounts.

Examples

Symbiosis WebApp

The Symbiosis WebApp uses the Symbiosis API for interacting with the Symbiosis Protocol and serves as a reference for supported protocol functionalities.

Swagger

The Swagger documentation of the Symbiosis API provides examples for every endpoint. Simply scroll to the endpoint of interest, input the required data, or use preset values, and execute the example.

Last updated

Was this helpful?