Skip to content

Commit 0fff2ee

Browse files
committed
connect to wallet
1 parent bd65392 commit 0fff2ee

File tree

5 files changed

+21
-2
lines changed

5 files changed

+21
-2
lines changed

.vscode/settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"cSpell.words": [
3+
"cryptocurrency"
4+
]
5+
}

SUMMARY.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
## 💻 DApp
5252

5353
- [What is Dapp](dapp/what-is-dapp.md)
54-
- [Wallet Connect](dapp/wallet-connect.md)
54+
- [Wallet Connect](dapp/wallet-connect/README.md)
55+
- [Connect to Wallet](dapp/wallet-connect/connect-to-wallet.md)
5556
- [Transaction Interaction](dapp/transaction-interaction.md)
5657

5758
## 👓 Case Study

dapp/wallet-connect.md

-1
This file was deleted.

dapp/wallet-connect/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
In traditional web applications, users are prompted to sign in with an username and a password. In the decentralized world, DApps need to be given permission to access a user’s wallet in order to enable certain functionality.
2+
3+
## Metamask
4+
5+
MetaMask is a cryptocurrency wallet that enables users to access the Web 3 ecosystem of decentralized applications (dapps). It is one of the most popular wallet solutions, and is accessible via a Chrome extension or a mobile app.
6+
7+
MetaMask injects a global Ethereum API into websites users visit at window.ethereum, which allows the websites to read and request the users' blockchain data.
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
In this post we will use a library called web3-react in order to connect users to MetaMask or any wallet from the frontend. Web3-react is a simple, powerful framework for building modern Ethereum dApps using React.
2+
3+
## Prerequisites
4+
5+
1. Install [metamask](https://metamask.io/) and create an account. Add the extension to your browser.
6+
2. Create your own React project
7+
3. [ethers.js](https://docs.ethers.io/v5/): Open source JavaScript Client library which contains the tools to talk to the Ethereum blockchain. (Another very popular option is [web3.js](https://web3js.readthedocs.io/en/v1.5.2/). You can find a comparison of the two [here](https://blog.infura.io/ethereum-javascript-libraries-web3-js-vs-ethers-js-part-i/).)

0 commit comments

Comments
 (0)