# How to Deposit and Withdraw on Fiamma Bridge?

Prerequisite

To begin, you'll need wallets that support EVM-compatible and BTC addresses, along with the corresponding test tokens.

* Bitcoin Signet
  * Wallet: [Unisat](https://unisat.io/) (others coming soon)
  * Faucet: <https://signetfaucet.bublina.eu.org/>
* Ethereum Holesky Testnet
  * Wallet: [Metamask](https://metamask.io/) and others
  * Faucet: <https://www.holeskyfaucet.io/>

## How to Deposit

> Transfer sBTC from Signet to Holesky Testnet.

1. Connect Bitcoin Wallet - Unisat

<figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2FDvOkp0hRjIasGywro2ED%2Fimg_v3_02gs_9236ece3-7c26-4f86-a525-085d6ce21dhu.png?alt=media&#x26;token=dc1e90be-49af-4dcd-b06a-a1f7efe13f7b" alt=""><figcaption></figcaption></figure>

Please note that we only support Native Segwit and Taproot address types in alpha-testnet.&#x20;

<figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2FT0YmEvacZvhROZY8K9qj%2Fimg_v3_02gs_af43b911-befc-4d65-bcef-4367cc16f4hu.png?alt=media&#x26;token=ce2c45bd-320e-4479-a814-768a5bff9892" alt=""><figcaption></figcaption></figure>

2. Enter amount within `0.00001 ~ 0.0001sBTC`(Due to current liquidity constraints in our operator, we have implemented a temporary limit on amounts. We anticipate increasing these limits.)

<figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2FKYtF0ExoSBS3EiayVxOe%2Fimg_v3_02gs_bdeda497-b65b-427f-955a-84da7905eehu.png?alt=media&#x26;token=880ad884-dd3a-47eb-89f2-192a9ade87a6" alt=""><figcaption></figcaption></figure>

3. Please enter the recipient's address in the designated field, ensuring it is an ERC20-compatible address from the Holesky network.

> Or just conneting with the Metamask, which will autofill the address.

<figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2F6gLfLtPq8bGekYRpDFJk%2Fimage.png?alt=media&#x26;token=73e02e05-01d6-4207-8c8a-57147fe980fb" alt=""><figcaption></figcaption></figure>

4. Confirm and hit deposit

<figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2FSCKOltUHV4l5eKByBjPN%2F818d9f09-8f48-4cf7-9112-71d65dfea58a.jpeg?alt=media&#x26;token=49603a8b-a61b-4166-9b6c-eabe29821adb" alt=""><figcaption></figcaption></figure>

5. Sign `PEG-IN` (Deposit) Transaction and pre-sign Take Transactions, which is prepared to pay back for Operator when they finish `PEG-OUT` (withdraw) operation.

<figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2Fg5KhqnNrf2hYkQpa4kuW%2Fimg_v3_02gs_8008e31e-44c7-430e-bfec-630e3b6746hu.jpg?alt=media&#x26;token=447ac37f-0be5-41c9-a3a1-f2ad949367af" alt=""><figcaption></figcaption></figure>

6. It will then proceed with processing.
7. Check your deposit (Peg-in) status by clicking the deposit transaction. &#x20;

<figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2F96ms216HZ9aRQ05gMVCb%2F2afc9d55-b064-4863-a096-9563fbfe869b.jpeg?alt=media&#x26;token=359dc7b7-3708-447a-b150-093b819d7768" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2FkVeD3EaHNztUqXc3hNMT%2Fimg_v3_02gs_e88f30f7-8988-42b2-9cea-6a93904b3bhu.jpg?alt=media&#x26;token=ab66389c-4872-429f-953c-8ab5073c1529" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2FHbA8xifpkntcyWbJQBYT%2Fimg_v3_02gs_f4026fd5-460b-4083-94b5-d3a0cb4c69hu.jpg?alt=media&#x26;token=e2f5d898-599b-43f3-b8ae-ca3313333dcf" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2FkKJ0yDc4IDD1Db4fkkDS%2Fimg_v3_02gs_ecb1bb1a-eb2a-4663-aa6d-97ac672050hu.jpg?alt=media&#x26;token=05d52c70-dc6a-41d3-aaca-d8bf7b4bb4e8" alt=""><figcaption></figcaption></figure>

8. Check your bridged BTC (mamaBTC) on Sidechain wallet.

   1. Add mamaBTC **`0x5636bB012F5176d75755691B623236971126Fdac`**  on Metamask
   2. Check the amount.

   <figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2F4LRyEyIdrn4d6L32sPNm%2Fimg_v3_02gs_88b6404c-995c-4c14-a501-41f843fa38hu.jpg?alt=media&#x26;token=9e2bed83-d3b9-44d1-821e-20e8e822eb3c" alt=""><figcaption></figcaption></figure>

## How to `PEG-OUT`

1. Connect EVM-compatible wallets (e.g., Metamask)

<figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2Fv8en8ZekskyocKWCAELs%2F20241124-163845.jpeg?alt=media&#x26;token=b3c4df65-e82a-42ac-a02a-c44199e9befa" alt=""><figcaption></figcaption></figure>

2. Select `PEG-OUT` Amount (We will bring in external liquidity provider to achieve fully flexible amount in the future.)

<figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2FtHFYhxKFfqqlgtRlRb1a%2Fd0e80137-af32-4f11-9dce-33d821ea2150.jpeg?alt=media&#x26;token=7c3e92e3-6358-49c6-a4d5-d2db1b3e561e" alt=""><figcaption></figcaption></figure>

3. Fill out the recipient address on Bitcoin.

<figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2F5F57ANPY7oiJgoZoFKed%2F20241124-164526.jpeg?alt=media&#x26;token=45176221-11b3-4fbe-8fb8-93ad108a6e30" alt=""><figcaption></figcaption></figure>

4. Confirm and Withdraw
   1. Withdraw

<figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2FEoANZL2LEk7qauGBSjAe%2Fimg_v3_02gs_a86402b6-c4d6-46a0-8018-575646eb96hu.png?alt=media&#x26;token=c47aa211-06f2-4197-ac1f-15a9117b65ae" alt=""><figcaption></figcaption></figure>

b. Confirm Withdraw and Sign Burn Transaction

<figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2FKfbvuAvpL6g7v44akRrQ%2Fimg_v3_02gs_b3a1aa0b-667c-4a3e-98d8-ed617bc840hu.jpg?alt=media&#x26;token=324b7b24-b6ff-4896-8e05-bd9ad4e63028" alt=""><figcaption></figcaption></figure>

5. Processing.&#x20;
6. Check your PEG-OUT (withdraw) status in history.

> This process may take 10-20 minutes to be confirmed on the Signet.

<figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2FjYUYowiqlt6EfkKMxdI7%2Fimg_v3_02gs_8e546016-21aa-4cc0-9347-192f40df1fhu.jpg?alt=media&#x26;token=2e49a26b-556c-433c-8342-7806b176c0f1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2F1K4ovsMZdTfvaVYSvWLn%2Fimg_v3_02gs_098c5537-2c5b-4421-92bc-cd1a57000ehu.jpg?alt=media&#x26;token=d63f916f-b61a-43ea-92a3-6fac55fbb28c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2784505184-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNaWxhWAPbrPeq8rIwJHB%2Fuploads%2F9xR6jxFcTqBMGbUzhVPQ%2Fimage.png?alt=media&#x26;token=097fa4f0-32a2-400e-b230-56b80f623beb" alt=""><figcaption></figcaption></figure>


---

# 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.fiammalabs.io/our-product-suite/pragmatically-trustless-bitvm-bitcoin-bridge/user-guides/testnet-alpha/how-to-deposit-and-withdraw-on-fiamma-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.
