As per the instructions detailed in this post, I've created an account:
and started running my geth node:
how can I check if it's mined any ether yet?
the answer of @lungj resulted in this:
As per the instructions detailed in this post, I've created an account:
and started running my geth node:
how can I check if it's mined any ether yet?
the answer of @lungj resulted in this:
You can use this from the geth console:
web3.fromWei(eth.getBalance(eth.coinbase), "ether")
It shows you the balance, in ether, of the account you are mining to. If it's not zero, either you've been sent some ether or you've mined some! Alternately, you can use this script which shows you the balance for all accounts:
function checkAllBalances() {
var totalBal = 0;
for (var acctNum in eth.accounts) {
var acct = eth.accounts[acctNum];
var acctBal = web3.fromWei(eth.getBalance(acct), "ether");
totalBal += parseFloat(acctBal);
console.log(" eth.accounts[" + acctNum + "]: \t" + acct + " \tbalance: " + acctBal + " ether");
}
console.log(" Total balance: " + totalBal + " ether");
};
See also https://github.com/ethereum/go-ethereum/wiki/Managing-your-accounts
I don't think you need to unlock your account to execute this.
geth console --port "35555"– smatthewenglish Jul 24 '17 at 22:00eth.coinbasewith your Ethereum address (0xd7a9...) which is listed as your coinbase? – lungj Jul 25 '17 at 00:01web3.fromWei(web3.eth.getBalance('0xd7a9a61a480d458a1181e0563b07f944df4489a6'),'ether').toString(10)and it worked. can I query any address on there? even one of yours or anyones? – smatthewenglish Jul 25 '17 at 00:04