Connecting Metamask to Hyperledger Besu private network on different computers
As a user of the Hyperledger fabric blockchain platform, you are probably familiar with the convenience of using Metamask, a popular Ethereum portfolio and other cryptocurrencies to manage your digital assets. However, what if you want to connect your Metamask portfolio to a private Hyperledger Besu private network working on another computer? In this article, we will translate you through the steps to achieve this connection.
Prerequisites
Before we start, make sure that:
- You have installed Metamask on both computers.
- The Hyperledger Private Woven Network is set and works on your Ubuntu computer (PC B).
- Your Metamask portfolio is properly configured for Ethereum (or cryptocurrency you want to use) on your computer with Windows (PC A).
Step 1: Download and install Node.js
Because Metamask requires a javascript node support, download and install the most node.js version of the official website.
Step 2: Set Metamask to PC B
On Ubuntu Computer (B), follow these steps to set up Metamask:
- Open a terminal.
- Enter
sudo npm installation -G cordova
(if you use Cordova Cli).
- Starting the Cordova service:
Cordov Start '
- Installation of node.js (version 14 or newer version):sudo apt-bet update && sudo apt-get install nodejs
Step 3: Configuring Metamask on a computer B
- Open a terminal.
- Enternpm installation -G Metamask
(if you are using Cli Metamask).
- Starting the Metamask:Metamask Start ‘service
- Configure the settings of your Ethereum portfolio in Cli Metamask by work:
Config Config Config-Network
Step 4: Contact Hyperledger Besu Private Network on PC B
- Open a new terminal on a Ubuntu computer (b).
- Enter
Nodemon
and press Enter.
- Open the directory of your project using
CD
.
- Complete the following command to connect to your private Hyperledger fabric:
`bash
METAMASK CONNECT-NETWORK
Replace
with the actual name of your private network Hyperledger Fabric.
Step 5: Check the connection
Once connecting to the network, check that your Metamask portfolio has been successfully connected. You can do this by checking the Blockchain Explorer or using the Metamask command tool.
Tips to troubleshoot
- If you encounter problems, make sure your Ubuntu and Windows computers work on separate networks.
- Check network settings in both operating systems to make sure they are configured properly.
- If you are using VPN, try deactivating it and reconnecting it on the network.
Following these steps, now you need to be able to connect your Metamask portfolio to Windows Computer (Computer A) to the Hyperledger Besu private network operating on Ubuntu Computer (Computer B). Happy blockchain survey!