# Connect with MetaMask (QR-based)

![D'CENT Wallet - MetaMask integration](https://3989759490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M50hxCNYm5Y8rdrUs_k-887967055%2Fuploads%2FAhnTlDf8Z9mVPNj6yoUx%2Fimage.png?alt=media\&token=201a1108-98b4-4ae0-95e9-b5e6e6f61bd7)

MetaMask supports **EVM-compatible blockchains** (those that run **smart contracts**) and is widely used across various **DApp platforms**. In addition to its built-in accounts, MetaMask also supports a **QR-based protocol** for integrating with **hardware wallets**.

The **D'CENT app** utilizes this **QR-based protocol** to enable seamless integration between **D'CENT accounts (EVM-compatible)** and **MetaMask**.

## Download and Install MetaMask

First, download the MetaMask Chrome extension from ([**https://metamask.io/download/**](https://metamask.io/download/)) and follow its instructions to install.

<div align="left"><figure><img src="https://3989759490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M50hxCNYm5Y8rdrUs_k-887967055%2Fuploads%2FxGz6jlAMUUueKsqbQ1in%2F%EB%A9%94%ED%83%80%EB%A7%88%EC%8A%A4%ED%81%AC-01.png?alt=media&#x26;token=b7703da4-d980-4a9e-9386-cdff30cc8e29" alt="" width="375"><figcaption></figcaption></figure></div>

## How to connect D’CENT Wallet with MetaMask

{% hint style="danger" %}
This function is supported only in **Biometric Wallet** and **App Wallet(Software)** mode. Minimum supported version

* **Biometric Wallet** firmware version: **2.19.7 or higher**
* **D’CENT App** version: **Android (5.16.1 or higher) / iOS (5.16.2 or higher)**&#x20;
  {% endhint %}

{% hint style="danger" %}
The QR-based protocol supported by the MetaMask can only be used when a camera(webcam) is installed on the computer.

If you use an external camera device, please check if the camera supports the **auto focuing and QR code scanning function.**
{% endhint %}

### \[Step 1] Preparing to connect with MetaMask in the D’CENT App

<div align="left"><figure><img src="https://3989759490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M50hxCNYm5Y8rdrUs_k-887967055%2Fuploads%2FuADvGGa1fZ87LLw2Kme8%2Fmetamask-01.png?alt=media&#x26;token=32de0963-b629-4a5c-9f46-385153e5bf14" alt=""><figcaption></figcaption></figure></div>

**1)** After running the D’CENT App, enter the **"Discovery"** tab.

{% hint style="info" %}
If you do not have an EVM account, please refer to user guide [‘**How to create a coin account**’](https://userguide.dcentwallet.com/mobile-app/create-account) to create an account and use it.
{% endhint %}

**2)** Select **"MetaMask Integration"** from the list.

**3)** Check the consent box, then click the **"Go to Service"** button.

<div align="left"><figure><img src="https://3989759490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M50hxCNYm5Y8rdrUs_k-887967055%2Fuploads%2FW1SiDQGYbGM4KMJUaKot%2Fmetamask-02.png?alt=media&#x26;token=083c0513-540f-4d1d-8745-611f405c9b6b" alt=""><figcaption></figcaption></figure></div>

**4)** Click on **"Select Account"** button.

**5)** From the list, select the **EVM-based account (e.g., Ethereum)** you wish to connect.

**6)** After confirming that the QR code is generated, Proceed to **\[Step 2]**.

{% hint style="danger" %}
**DO NOT** disclose QR code to others.
{% endhint %}

### \[Step 2] Connect the D'CENT Wallet by scanning the QR code on your computer

<div align="left"><figure><img src="https://3989759490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M50hxCNYm5Y8rdrUs_k-887967055%2Fuploads%2FHrBtuYLJ3c32V0sSDbcK%2F%EB%A9%94%ED%83%80%EB%A7%88%EC%8A%A4%ED%81%AC-04.png?alt=media&#x26;token=81184714-7a5a-432e-bf45-24bba4396118" alt=""><figcaption></figcaption></figure></div>

**1)** On the **MetaMask main screen**, click the **"Account"** button at the top center.

**2)** Select **"Add Account or Hardware Wallet"**, then click **"Add Hardware Wallet"**.

<div align="left"><figure><img src="https://3989759490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M50hxCNYm5Y8rdrUs_k-887967055%2Fuploads%2FSpJAbmereRFjvenOU5t4%2F%EB%A9%94%ED%83%80%EB%A7%88%EC%8A%A4%ED%81%AC-05.png?alt=media&#x26;token=f0610a8a-179f-48b8-bdb1-872cc130d355" alt=""><figcaption></figcaption></figure></div>

**3)** After selecting **"QR-based"**, click the **"Continue"** button at the bottom.

**4)** It switches to the QR code scanning page.

<div align="left"><figure><img src="https://3989759490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M50hxCNYm5Y8rdrUs_k-887967055%2Fuploads%2FNCNm3kJb5I0xWGTGHRjc%2F%EB%A9%94%ED%83%80%EB%A7%88%EC%8A%A4%ED%81%AC-06.png?alt=media&#x26;token=07d204a0-9b40-4b70-8553-6184c57e0e53" alt=""><figcaption></figcaption></figure></div>

**5)** Scan the QR code prepared in **\[Step 1]** using the camera on your computer.

**6)** When the QR code scan is completed normally, it will be converted to the account selection page.

<figure><img src="https://3989759490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M50hxCNYm5Y8rdrUs_k-887967055%2Fuploads%2FaBgQ8j9jBHwm1idTw84L%2F%EA%B7%B8%EB%A6%BC5.png?alt=media&#x26;token=47c27688-b72a-4345-a0c7-35ef1013cc70" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
If the camera on your computer is having difficulty reading the QR code, **please try again after adjusting the screen brightness to max on your phone.**
{% endhint %}

<div align="left"><figure><img src="https://3989759490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M50hxCNYm5Y8rdrUs_k-887967055%2Fuploads%2FsHJByNJOUZAXheZS3JS1%2F%EB%A9%94%ED%83%80%EB%A7%88%EC%8A%A4%ED%81%AC-07.png?alt=media&#x26;token=a56133e4-ed76-4fd7-97db-bf85fcd54ac8" alt=""><figcaption></figcaption></figure></div>

**7)** On the account selection page, select **First account** and click **"Unlock"**.

*(In the case of a D’CENT account, it doesn’t matter which account you choose because all the accounts shown in the QR scan list are the same.)*

**8)** You can check the page where the account of the D’CENT wallet and the MetaMask are linked.

## Example of how to send ETH using MetaMask

### \[Step 1] Create ETH transaction with MetaMask

<div align="left"><figure><img src="https://3989759490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M50hxCNYm5Y8rdrUs_k-887967055%2Fuploads%2FBwf5cniLfejSyl5Qo7Pp%2F%EB%A9%94%ED%83%80%EB%A7%88%EC%8A%A4%ED%81%AC-08.png?alt=media&#x26;token=454443f1-207d-4398-8250-0b65ecd4451a" alt=""><figcaption></figcaption></figure></div>

**1)** On the **MetaMask main screen**, click the **"Send"** button.

**2)** Enter the recipient’s **wallet address**, then click **"Continue"** button.

<figure><img src="https://3989759490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M50hxCNYm5Y8rdrUs_k-887967055%2Fuploads%2FqEAB8zOJOxNXICUa2w8a%2F%EB%A9%94%ED%83%80%EB%A7%88%EC%8A%A4%ED%81%AC-09.png?alt=media&#x26;token=93149146-9921-44fe-bb22-b141a2a15c31" alt=""><figcaption></figcaption></figure>

**3)** Input the **amount** you wish to send, then click **"Continue"** button and review the transaction details. Click **"Confirm"** to proceed. *(You can adjust the transaction fee limit by selecting the "Edit" option.)*

**4)** The screen will switch to a **QR code format** for the **signature request**.

### \[Step 2] Create a signature for the transaction using the D’CENT App

<div align="left"><figure><img src="https://3989759490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M50hxCNYm5Y8rdrUs_k-887967055%2Fuploads%2FWMdxfB8YUOhwGeVy3KAn%2Fmetamask-03.png?alt=media&#x26;token=2af3aaef-d6be-4fc1-94a1-497ea9a10a9c" alt=""><figcaption></figcaption></figure></div>

There are **two ways** to scan the **signature request QR code**:

**1)** From D'CENT App, go to the **"Discovery"** tab and Click on **"MetaMask Integration > Select account to sign (e.g., Ethereum) > QR Scan"** button.

**2)** Alternatively, tap the **"QR Scan"** button in the **top left corner** of the **"Discovery"** tab.

<div align="left"><figure><img src="https://3989759490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M50hxCNYm5Y8rdrUs_k-887967055%2Fuploads%2FOO2g5fvmsjnmkty8w3nO%2Fmetamask-04.png?alt=media&#x26;token=6c908399-439a-411a-8c6c-f7d70f199b45" alt=""><figcaption></figcaption></figure></div>

**3)** When the **QR scanning screen** appears, scan the **signature request QR code** generated in **\[Step 1]**.

**4)** Verify the **recipient address**, then tap **"Sign"**.

<div align="left"><figure><img src="https://3989759490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M50hxCNYm5Y8rdrUs_k-887967055%2Fuploads%2FzAMafdHWLt8DYDg2MXMZ%2Fmetamask-05.png?alt=media&#x26;token=16ea69f5-f01b-411d-be43-cddc32b22683" alt=""><figcaption></figcaption></figure></div>

**5)** If you are using a **biometric cold wallet**, carefully review the displayed information once more. If everything is correct, press **"OK"**, then enter your **fingerprint or PIN**.

**6)** If you are using an **app wallet**, enter the **6-digit password** you set when you first launched the app.

<div align="left"><figure><img src="https://3989759490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M50hxCNYm5Y8rdrUs_k-887967055%2Fuploads%2FJZDHYg20wKu22ovEAXK9%2Fmetamask-06.png?alt=media&#x26;token=18da92ce-c0f3-4275-b0f4-cc3e4bfbae11" alt="" width="389"><figcaption></figcaption></figure></div>

**7)** After signing, you can check the signature in QR code format.

### \[Step 3] Sending signed data to MetaMask

<div align="left"><figure><img src="https://3989759490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M50hxCNYm5Y8rdrUs_k-887967055%2Fuploads%2FXX84x2vqUs5C6dR7VUSK%2F%EB%A9%94%ED%83%80%EB%A7%88%EC%8A%A4%ED%81%AC-14.png?alt=media&#x26;token=1e7f32d0-931e-4912-8795-40b887fe17da" alt=""><figcaption></figcaption></figure></div>

**1)** Click the **"Get Signature"** button on the signature request page completed in **\[Step 1]**.

**2)** Scan the QR code prepared in **\[Step 2]** using the camera on your computer.

<div align="left"><figure><img src="https://3989759490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M50hxCNYm5Y8rdrUs_k-887967055%2Fuploads%2FOOUo1qYdwUceiArxdNqT%2F%EB%A9%94%ED%83%80%EB%A7%88%EC%8A%A4%ED%81%AC-15.png?alt=media&#x26;token=eac87eaf-c9c2-47c7-959f-06384c6d495c" alt="" width="375"><figcaption></figcaption></figure></div>

**3)** Once the **QR code scan** is completed, go to the **Activity** tab in **MetaMask** to view the transaction details.


---

# 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://userguide.dcentwallet.com/external-service/qrbasedmetamask.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.
