Introduction
Socket API is now part of Bungee. Socket API will be migrated to Bungee API. Documentation is in progress, and you may find references to Socket API in this documentation.
Bungee API allows developers to easily transfer liquidity across chains It lets you access aggregated liquidity and information from hundreds of on-chain and off-chain decentralized exchange networks, bridges, across multiple blockchains. It comes with many parameters to customize your requests for your application and your users. It allows you to interface with the multi-chain world with ease and also to interact with on-chain Bungee contracts on different chains. The API also comes with utilities for token approvals, balances, prices across different chains that we support.
We offer hosted versions for different networks. Requests for more networks, and questions/feedback in general should be directed at our Discord.
Want Bungee to integrate your protocol?​
Access to Bungee's API is restricted and requires an API key. Should your project require access to the Bungee API, please complete the submission form, and our team will respond at the earliest convenience. For any queries, please reach out to us on Discord.
Public API Key : 72a5b4b0-e727-48be-8aa1-5da9d62fe635
(For testing)
API Key form : https://forms.gle/VF8jWp3mkSgUu3Fh9
API Status​
The API uptime and status can be checked here.
Important Notes​
Bridge Slippage​
defaultBridgeSlippage
for route can be set between 0% - 100% and passed in the/quote
endpoint. This slippage value also needs to be passed in the/build-tx
or/build-next-tx
when building the transaction data.- If a bridge doesn't support slippage,
bridgeSlippage
in the quote response will be0
and users may receive an amount less than expected from slippage. - If a bridge does support slippage, but the received amount is still less than expected, the destination transaction will fail. In this case, users need to redeem their funds via the bridge's fallback mechanism. This varies from bridge to bridge. Find these fallback mechanisms here
Same chain swaps​
- Bungee also supports same chain swaps in addition to cross chain swaps
- The
fromChainId
&toChainId
in the quote needs to set to the same chain - The
isOnlySwapRoute
parameter in a route is set totrue
for same chain swaps