# BRC20 Bridge (Testnet)

## Prerequisites

Before starting the bridging process between Bitcoin and SatoshiVM, ensure the following:

1. [**MetaMask Wallet**](https://docs.satoshivm.io/user-guide/testnet/wallet-setup)**:** Have MetaMask installed and configured to interact with the SatoshiVM Testnet.
2. [**UniSat Wallet**](https://docs.satoshivm.io/user-guide/faucet/bridge-from-bitcoin#wallet-setup-via-unisat)**:** Ensure your UniSat wallet is ready for the transaction process.
3. Understand [**brc-20 protocol**](https://domo-2.gitbook.io/brc-20-experiment/).

## Mint $sats for testing

### 1. Navigate to UniSat Testnet

Access [UniSat Testnet](https://testnet.unisat.io/brc20/sats) to mint $sats, a brc-20 token deployed on Bitcoin Testnet.

<figure><img src="https://67081447-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLhegu0iVyRUg425RQWaa%2Fuploads%2FbaTBYqD4dxKTy4AmGUlV%2Fimage.png?alt=media&#x26;token=8a04ba53-2b03-4450-a289-bca456e90e09" alt=""><figcaption></figcaption></figure>

### 2. Mint $sats directly

Connect your Bitcoin wallet and mint $sats directly:

#### 2.1 Generate the text for minting

Click "Mint Directly" and follow the prompt to generate the text for minting.

<figure><img src="https://67081447-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLhegu0iVyRUg425RQWaa%2Fuploads%2FDXPhDsiEfXn77aqEYPLw%2Fimage.png?alt=media&#x26;token=4f4d980c-7aed-4871-bb07-8e33390c6041" alt=""><figcaption></figcaption></figure>

#### 2.2 Confirm the inscription details

Review the generated text and click "Next" to continue.

<figure><img src="https://67081447-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLhegu0iVyRUg425RQWaa%2Fuploads%2FIxYB8QW5j2l2at2GDBUu%2Fimage.png?alt=media&#x26;token=f2024889-98b7-46b4-a9d9-08ad5fb0b383" alt=""><figcaption></figcaption></figure>

#### 2.3 Fill in the recipient's address

Fill in your Bitcoin Testnet address to receive $sats.

<figure><img src="https://67081447-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLhegu0iVyRUg425RQWaa%2Fuploads%2FdQE6aD7f7MxHklBMJLrX%2Fimage.png?alt=media&#x26;token=055b781f-f6d3-4add-aa00-a540f6e5e007" alt=""><figcaption></figcaption></figure>

#### 2.4 Submit and pay the minting invoice

Submit and pay the prompted invoice to process the minting transaction.

<figure><img src="https://67081447-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLhegu0iVyRUg425RQWaa%2Fuploads%2FKNO2XuovmyeILh1f2TL5%2Fimage.png?alt=media&#x26;token=851b4256-1bac-41b9-b2a8-5010c0f8d099" alt=""><figcaption></figcaption></figure>

<figure><img src="https://67081447-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLhegu0iVyRUg425RQWaa%2Fuploads%2FdSQy2kwwJWeMsG0j0C0t%2Fimage.png?alt=media&#x26;token=0ddb1de4-687d-429e-b6b4-140c72af0138" alt=""><figcaption></figcaption></figure>

### 3. Check your $sats balance in UniSat

{% hint style="warning" %}
Note that it generally takes a few minutes to get your BRC-20 balances updated in UniSat.
{% endhint %}

<figure><img src="https://67081447-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLhegu0iVyRUg425RQWaa%2Fuploads%2FhNDJvC0yIcJdyui6fExh%2Fimage.png?alt=media&#x26;token=738c6afb-8fca-4afa-be04-295ca24881d1" alt=""><figcaption></figcaption></figure>

## Deposit: Bridge $sats to SatoshiVM

### 1. Navigate to the official BTC bridge

Access the official [BTC Bridge page (Testnet)](https://testnet-bridge.satoshivm.io/) and select $sats for depositing.

<figure><img src="https://67081447-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLhegu0iVyRUg425RQWaa%2Fuploads%2F6KKoLiLu7kyHhKdEHffU%2Fimage.png?alt=media&#x26;token=1525abb1-ee13-4163-b43b-2b07996562d6" alt=""><figcaption></figcaption></figure>

### 2. Inscribe TRANSFER for depositing

According to brc-20 protocol, one has to inscribe the transfer function for a given amount before sending it to a desired recipient. Uninscribed brc-20 tokens are non-transferable.

{% hint style="warning" %}
Note that it generally takes a few minutes to get your transferable BRC-20 balances updated.
{% endhint %}

<figure><img src="https://67081447-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLhegu0iVyRUg425RQWaa%2Fuploads%2FHppFNycNWhKc2153qyOe%2Fimage.png?alt=media&#x26;token=aee6704f-170e-4ef6-9de0-611072199114" alt=""><figcaption></figcaption></figure>

### 3. Deposit transferable BRC-20 on Bitcoin Testnet

#### 3.1 Select a transferable BRC-20 balance for depositing

<figure><img src="https://67081447-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLhegu0iVyRUg425RQWaa%2Fuploads%2FMCEaby57MgA9CUcWutPm%2Fimage.png?alt=media&#x26;token=6bb40830-ebc4-4e65-b773-adb7fb5473d0" alt=""><figcaption></figcaption></figure>

#### 3.2 Confirm the deposit transaction in UniSat

<figure><img src="https://67081447-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLhegu0iVyRUg425RQWaa%2Fuploads%2Fctx3yRbcYuT5JSC1unwc%2Fimage.png?alt=media&#x26;token=5fae609d-f556-47b4-a42f-ceb9b08308f3" alt=""><figcaption></figcaption></figure>

### 4. Monitor progress on the History page

Once the deposit is initiated, monitor your transaction's progress on the SatoshiVM Bridge History page. This section provides real-time updates on the status of your deposit.

<figure><img src="https://67081447-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLhegu0iVyRUg425RQWaa%2Fuploads%2FCj4CqIHH7ZJlIkqELsth%2Fimage.png?alt=media&#x26;token=5b5450ae-a2b3-4c07-ba9c-fd36840ed123" alt=""><figcaption></figcaption></figure>

### 5. Check destination address balance via SatoshiVM Explorer

After completing the deposit, check the destination address balance using the [SatoshiVM Explorer](https://testnet.svmscan.io/). Confirm that the equivalent amount of $sats has been transferred to your SatoshiVM address.
