Smart contract deployment call based on remix+metamask+ganache

When we deploy the contract, in order to make it closer to the real blockchain decentralized experience, we need to call the little fox (Metamask) to conduct real transactions. However, there is no built-in virtual test currency in metamask. We need to call Ganache to add the The account of the virtual test coin. The above is the relationship between the three. Let’s officially start our contract on-chain experience.

 1. Start Ganache

The page options are default and start directly.

2.Metamask adds ganache account

Find Add Network in Settings

Import the account in Add Account

Copy account private key

Guess you like

Origin blog.csdn.net/2302_77339802/article/details/134762907