LiFi
BuildBear LiFi is a bridge & DEX aggregation protocol that provides the best cross-chain swap across all liquidity pools and bridges.
Overview
LI.FI is a bridge & DEX aggregation protocol that simplifies cross-chain swaps and bridging by aggregating liquidity from multiple sources. The LI.FI plugin on BuildBear provides developers with a controlled environment to test multi-chain transactions without interacting with the mainnet.
By integrating this plugin, developers can validate LI.FI’s functionalities, debug transactions, and simulate real-world scenarios before deploying. The plugin grants access to all DEXs, DEX aggregators, and relevant bridges across supported networks, allowing seamless swaps, bridging, or a combination of both in a single transaction.
Features
- Cross-Chain Testing: Enables developers to test multi-chain interactions without using real assets.
- Seamless Integration: Works effortlessly within BuildBear’s sandbox environment.
- Support for LI.FI SDK: Facilitates simulation & testing of bridging and swapping transactions.
- Comprehensive Testing Logs: Provides detailed transaction logs, debug information, and validation reports.
- Sandboxed Liquidity Access: Allows controlled liquidity aggregation testing without real asset exposure.
Supported API Routes
BuildBear supports a variety of API routes powered by LI.FI. Explore the full list here
How to Use
Step 1: Install the Plugin
- Log in to your BuildBear account and navigate to the Plugin Marketplace.
- Search for the "LiFi" Plugin and click "Install".
Step 2: Verify Installation
Ensure the plugin appears as installed in the marketplace or under the 'Installed' tab.
Step 3: Get Sandbox ID & RPC URL
Go to your BuildBear sandbox dashboard and locate the RPC URL:
The sandbox ID also acts as the API endpoint for the LI.FI plugin:
You will need two sandboxes, one for the source chain and one for the destination chain.
Step 4: Get Bridge Quotes from LI.FI
To retrieve bridging/swapping quotes, use the following API URLs:
Query the /quote
endpoint to get quotes for desired token swaps or bridges:
Step 5: Execute the Transaction
Use the transaction request object from getQuote
response to send a bridging transaction:
Example Transaction Payload
Conclusion
Integrating the LI.FI plugin into BuildBear’s sandbox provides developers with a structured environment to test multi-chain transactions, including bridging and swapping, without real asset exposure. With enhanced debugging capabilities and seamless integration, developers can efficiently validate their implementations before mainnet deployment.
IARD Solidity Analyzer
BuildBear Solidity Analyzer is a service that allows you to explore the blockchain.
Pimlico
The Pimlico plugin for BuildBear Sandboxes brings powerful Alto bundler functionality tailored for Account Abstraction (AA), along with seamless support for Pimlico’s Verifying and ERC20 Paymasters.