> For the complete documentation index, see [llms.txt](https://2hot-dao.gitbook.io/2hotdao-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://2hot-dao.gitbook.io/2hotdao-docs/2hot-protocol/bridge.md).

# Bridge

{% hint style="info" %}
Cross-chain bridge will be able after the formed DAO.
{% endhint %}

## What is a crypto bridge?

A crypto bridge (also known as a cross-chain bridge) is a tool that gives you the power to transfer digital assets and information from one blockchain to another.

### Example

If person A has a USDT on the Ethereum network(as an ERC-20) token and wants to have it on the Polygon network, it can be done with the Bridge.\
\
If person B has ETH and wants to change it for BTC, without CEX (Centralized exchange) it can be done anonymously with 2HOT Bridge.

```javascript
//def sign(params):
  if isinstance(params, dict):
    parts = []
    for k in params:
      parts.append('%s=%s' % (k, params[k]))
    payload = '&'.join(parts)
  else:
    payload = params
  return hmac.new(
    key=YOUR_API_SECRET.encode(),
    msg=payload.encode(),
  digestmod=hashlib.sha256 ).hexdigest()
```

If true:

```javascript
"code": 0,
  "msg": "",
  "data":
      "code": "BTC",
      "coin": "BTC",
      "network": "BTC",
      "name": "Bitcoin",
      "recv": true,
      "send": true,
      "tag": null,
      "logo": "https://2hotdao.fi/assets/images/coins/svg/btc.svg",
      "color": "#f7931a",
      "priority": "5",
    },
    ...,
  ],
}
```

## Fixed vs Float Rate

<figure><img src="/files/9ew6INafczs7kNysJcuB" alt=""><figcaption><p>Fixed vs Float rates for the cross-chain bridge</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://2hot-dao.gitbook.io/2hotdao-docs/2hot-protocol/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.
