# Bridge

## Introduction

The Bridge just transfers tokens from a user to another wallet (could be themselves) on a different chain. Since no call data is involved, no target contract is needed.

## How does the Bridge work?

BIM Exchange aggregates various asset bridges and decentralized exchanges (DEXs) into a unified meta-bridge, selecting the most suitable route based on criteria like cost, speed, or security. By integrating DEXs and aggregators, users can seamlessly transfer tokens between different blockchains, such as swapping token A on chain X for token B on chain Y. Built on [<mark style="color:orange;">Bungee</mark>](https://docs.bungee.exchange/), BIM Exchange supports two bridging methods:

* **Single Transaction Bridge:** Enables one-step token transfers between chains, though limited by supported tokens on the destination chain.
* **Multi-Transaction Bridge:** Allows more flexible bridging by combining swaps and transfers across chains.

## Architecture and Operations

BIM Exchange’s infrastructure consists of on-chain smart contracts and an optional off-chain component:

* **On-Chain:** Bungee smart contracts manage token transfers across chains.
* **Off-Chain:** A backend quoting engine and API determine the optimal bridging routes, working with liquidity data from DEXs.

The process involves multiple steps, including generating quotes, approvals, and executing transactions for a seamless bridging experience. For more details, refer to the [<mark style="color:orange;">contract, backend architecture</mark>](https://docs.bim.finance/faq/bridge/contract-architecture) and [<mark style="color:orange;">life</mark>](https://docs.bim.finance/faq/bridge/lifecycle-of-bridging-session)[<mark style="color:orange;">cycle of bridging session</mark>](https://docs.bim.finance/faq/bridge/lifecycle-of-bridging-session).

## Bridge Fees <a href="#swap-fees" id="swap-fees"></a>

Bridge fees are available [<mark style="color:orange;">here</mark>](https://docs.bim.finance/whitepaper/overview/bim-exchange-dex-cex/bridge)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bim.finance/faq/bridge.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
