Metamask: Can Li Loose Counter -Stretch on Metamask?
As a delay, familiar with Web3 and Hardhat, you, verifiable, know about the importance of expansion of inteling counteract into the blockchain network. The topic does not change, the contracting in the live network with the metamask can be a complex task, especially for those who are new to Web3. In this state, we dissatisfied, it is possible to dispel the counteract with the use of Metamask and to introduce a hand -being about what it is.
What is Metamosk?
Metamask-is scratching the browser with an open source code, which allows the policeman to make a blockchain ethereum. It allows the policeman to depict Ethere (ETH) and other cryptocurrencies into their locomotels, as well as the transaction and management history. With metamask you can also make “Metamask’s Koshelek”, which is a way as a bridge between the places of the local Kovielk and the Ethereum network.
Putting counteract with Metamask
To expose counteracts in the live network with Metamask, you need to use the Hardhat, the popular mid -diminishing EVM (Virtual Ethereum). Here’s the predatory shague:
- Install Hardhat : Encourage that in your project establishment Hardhat, launch
NPM Staint Hardhat
orJarn Add Hardhat '.
- Set Metamask : In your fileMetamask.json
Specify the Address, Password and Net Metamask (For example, Ethereum Mainnet). You can find the settings on API alchimia.
- This file will be the content of instruction by the contract with the Hardhat.
4.
Primer code
Here's the primer that you can make a configuration file of expulsion:
Javascript
Import {DeploymentConfig} з@nomicfound/Hardhat-Toolbox ';
IMPORT {Deployer} from "@nomiclabs/Hardhat-deploy";
Constant expulsion: DeploymentConfig = {
Setti: {
Metamask: {
Cutting: [[
{
Title: "Your Metamac-Walt-Address",
PRIVATEKEY: Your Metamask-Wallet-Password,
URL: " ADRESS METAMASK"
}
]
Gas: 200000,
Gasprice: 10,000
}
Ethereum: {
Cutting: [[
{
Title: "Your-EFIR-ACCUT",
PRIVATEKEY: Your ETERUM-ACCUT PASPER,
URL: " Address Etherers"
}
]
Gas: 200000,
Gasprice: 10,000
}
}
Deployer: Deployer
};
Export of expansion of the burning;
Can Li Hardhat Expose Course on Metamask?
Yes, you can turn counteracts, using metamac with hardhat. Decree of the renewal address Metamask and settings of the network in your file Metamask.json
and Uspolse the configuration file of the expulsion, the subtractive highlight, you can firmly expand the counteract in the live network.
The topic does not less, go to the species that the contracting in the lives of the network sets the trickle dissatisfaction and the production. It is always possible that your Koshelek Metamask is unsettled and relevant, as well as follow the best methods of contracting in the Ethereum network.
In the conclusion, it is possible to tell the timeline to dispel the counteracts, using metamac with the hardlate, this is possible. The follow -up of this step and useful corrective files of configuration, you can successfully expand the counteracts in the live network, using the local metamask.
Wipes
- Hardhat Documentation: <
- Documentation Metamask: <
- Documentation API API ALCHIIMY: >