Release of the first transaction in the Ethereum test network

1. Install Ethereum wallet

To send and publish the first transaction in the Ethereum test network, you first need to create a wallet to manage the account. This wallet can be understood as a container for managing private keys. The specific steps are: Open the Chrome browser application Search for MetaMask in the store, select the corresponding wallet and add it to Chrome as one of its extensions. After completing the steps, you can check whether the installation was successful in the extension program.
Insert image description here
Here you need to pay attention: Make sure you install the correct MetaMask, because some people will release plug-ins that imitate MetaMask and set malicious functions in them. Genuine MetaMask has the following characteristics:

  1. The plug-in ID displayed in the browser URL is nkbihfbeogaeaoehlefnkodbefgpgknn, and the complete browser address is chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/home.html#onboarding/welcome
  2. Published by http://metamask.io
  3. There are over 1,400 user reviews
  4. There are more than 1,000,000 users
    Insert image description here

2. Create wallet

After installing the MetaMask wallet, you need to use MetaMask to create your own wallet, open the selected wallet application, and follow the instructions to create a new wallet. After creation, a unique address and private key will be generated for you for transactions. Of course, if you have created a wallet before, you can directly enter the original wallet using the mnemonic phrase you backed up.
image description
Simply choose to create a new wallet, and then set the password of your own wallet to create it successfully! The details are as follows:

After successfully creating the wallet and entering it, you can see the account information and account balance. You can also add any or import multiple accounts, and switch the current network. The default network is Ethereum main network, but sending transactions in the main network requires real token fees, so we choose to use the test network to test sending the first transaction. Each account created here has a corresponding private key. However, all accounts correspond to a mnemonic phrase. If the mnemonic phrase is leaked, all your account balances will be lost. It is operated by others, so you need to back up your mnemonic phrase. It is best to use cold storage here.
Insert image description here

3. Connect to the test network

Sending transactions on the main network requires real fees (fiat currency). As smart contract engineers, we must test codes and transactions in real time, so we need to perform our various operations in the test network, etc. After the smart contract is tested correctly and passes the code review, it can be deployed to the real Ethereum network. At that time, the smart contract is actually online.
Before switching the test network, we can first enter the github warehouse of the smart contract to view the latest test network and corresponding faucet information ( Obtain the address of the test currency ), the specific warehouse address is as follows: Smart contract github warehouse
Insert image description here
Therefore, we switch the Ethereum mainnet to Sepolia , the specific operation is as follows:

After successfully switching the network, you will find that your account information has not changed, but the token unit has changed. It was Ether before, and now it is test currency. Then Next, we will go to the faucet to obtain test Ethereum coins.It should be noted here that you cannot obtain real Ethereum coins from the faucet, only test coins.

4. Obtain test network Ethereum

Open and enter the faucet URLFaucet URL. Then at this time you need to register and log in first before you can copy your token address to obtain the token. Token, just register here using your email address. Note that you can only get 0.5 tokens from the faucet every day.
Insert image description here
After successfully obtaining tokens, you can see changes in your balance in the corresponding account information.

5. View the sent tokens in the blockchain browser

Just obtained 0.5 tokens from the faucet. We can view the corresponding transaction details in the blockchain browser. The corresponding blockchain browser URL isBlockchain Browse Device URL After entering the blockchain browser page, enter our token address to view the details of the token transaction sent to us by the faucet, as follows:

The blue content in the picture are all hyperlinks. Click to further view the transaction details, including transaction Hash (unique ID corresponding to the transaction), Status (transaction status), Block (transaction block height), Timestamp (transaction time) stamp), value (transaction amount), etc.
At this point, you have 0.5 tokens in your testnet wallet. You can easily send the first transaction to any address object. I will not test it here.

Guess you like

Origin blog.csdn.net/qq_51447436/article/details/133427546