解除したいアカウント
> personal.unlockAccount(eth.accounts[0])
Unlock account 0x53c21065cce445d95dd0376083aca950f760d71d
Passphrase:
true
実際にEtehrを送金してみる。
> eth.sendTransaction({from: eth.accounts[0], to: eth.accounts[1], value: web3.toWei(10, "ether")})
INFO [12-24|12:49:53] Submitted transaction fullhash=0xe88c8984d53a340628f30f0c4e425d9a7776e6c8465b21ab9a2d972f71f08f2a recipient=0xcc308c4cA7Df6694479bBd31B3AeC7E78BFbd5F1
"0xe88c8984d53a340628f30f0c4e425d9a7776e6c8465b21ab9a2d972f71f08f2a"
ここではまだ送金されてない。
未処理のトランザクションの取得
> eth.pendingTransactions
トランザクション詳細の取得
> eth.getTransaction("トランザクションID")
マイニングを実行
> miner.start(1)
> eth.pendingTransactions
[]
> eth.blockNumber
68 <- 数字が増えているかどうか
> web3.fromWei(eth.getBalance(eth.accounts[1]), "ether")
10