Bungee Integration Overview
Bungee provides a unified API for token swaps. This guide outlines the integration process and helps you choose the right approach for your application.
Getting Started
See our integration guides for step-by-step instructions on how to integrate Bungee into your application.
Auto: ERC20 Integration
Integrate Bungee Auto with Permit2 for ERC20 tokens
Auto: Native Integration
Integrate Bungee Auto with the Inbox Contract
Manual Integration
Integrate Bungee Manual for granular control
API Reference
Explore the full Bungee API documentation
Link to Bungee
Redirect users to Bungee with chain/tokens for transfers pre-selected. Users can then simply choose a route and start transferring with just a few clicks.
https://bungee.exchange/?fromChainId=1&fromTokenAddress=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee&toChainId=10&toTokenAddress=0x0b2c639c533813f4aa9d7837caf62653d097ff85
See the Bungee Link documentation for more details and parameters.
Coming Soon
Bungee Lite: A React component for easy UI integration that will allow you to embed Bungee directly in your application with minimal configuration.
Integration Flow
All Bungee integrations follow these four key steps:
For detailed API specifications, see the API Reference.
1. Get Quote
- API Endpoint:
/bungee/quote
Request a quote to receive available routes, fee estimates, and transaction data for your token swap.
2. Handle Token Approvals
For ERC20 tokens only:
- Auto Mode: Uses Permit2 for gasless approvals (permit2 tx data is provided in the quote response)
- Manual Mode: Requires standard ERC20 approval transaction (approval tx data is provided in the quote response and in build-tx response)
3. Submit Transaction (Onchain & Offchain)
Auto ERC20
- API Endpoint:
/bungee/submit
- Sign typed data and submit off-chain
Auto Native Token
- Transaction data is provided in the quote response
- Submit transaction onchain to the Inbox Contract
Manual Routes
- API Endpoint:
/bungee/build-tx
- Build transaction data and submit onchain
4. Monitor Transaction Status
- API Endpoint:
/bungee/status
Track the status of your transaction until completion.
Integration Guides
For detailed implementation, refer to our step-by-step guides:
- Bungee Auto: ERC20: Using Permit2 for ERC20 tokens
- Bungee Auto: Native: Using the Inbox Contract for native tokens
- Bungee Manual: Using manual routes for granular control
- Status Checking: Monitoring transaction status
Coming Soon
- Bungee Lite: A React component for easy UI integration
Legacy Documentation
Legacy Bungee Manual documentation is available here for reference, but we recommend using the new Bungee API for all new integrations.