Ethereum Tutorials - Herong's Tutorial Examples - Version 1.02, by Dr. Herong Yang
Process MetaMask Transsfer Transaction
This section describes how to process and view the transfer transaction submitted by MetaMask wallet.
With the transfer transaction submitted correctly from the MetaMask wallet, I can turn on the miner to process it.
1. On "geth" console, start the miner and wait for the CPU to go crazy:
> miner.start(4) > eth.getTransaction(txid).hash "0x029f863ecf7c888825e0a26d215d0e60467d9fe95af1f3d8718993e6cd8d0284" > eth.getTransaction(txid).blockNumber null ... > eth.getTransaction(txid).blockNumber 49 > miner.stop() true
Ok. Transaction is processed now. I stopped the miner to save some electricity power.
2. On the MetaMask wallet, the balance is updated to 97.999979 ETH now. So I got charged with a 0.000021 ETH transaction fee.
3. Check the balance on my second "geth" account:
> receiver = eth.accounts "0x485410d2e7b8bfb6f78e5e5acf7d1057cb853fce" > eth.getBalance(receiver) 2000000000000000000 > web3.fromWei(eth.getBalance(receiver),"ether") 2
I did receive 2 ETH.
4. Check the balance on my coinbase account:
> eth.coinbase "0x05d4e1a499775ce9d681abd50bda655c7b5ccb90" > web3.fromWei(eth.getBalance(eth.coinbase),"ether") 10000155.000021
The miner did receive the transaction fee (0.000021 ETH) as part of the mining reward!
Last update: 2018.
Table of Contents