setEtherbase() not working in geth

–1 vote

I am not able to make setEtherbase() work. This is what I am doing:

> setEtherbase(eth.accounts[0])
true
> miner.etherBase
undefined

Even though it shows true when I set Ether base it still shows undefined.

Jan 16 in Blockchain by digger
• 26,550 points
39 views

1 answer to this question.

0 votes

setEtherbase() is not a method of the personal object, it's a method of the miner object and that's why setting ether base won't work. You would rather try using the address directly, like this:

miner.setEtherbase('0x7...')
answered Jan 16 by Omkar
• 67,660 points

Related Questions In Blockchain

0 votes
1 answer

SteemJS not working in Firefox/IE

npm install adcpm/steem#dev Just build it from develop ...READ MORE

answered Sep 14, 2018 in Blockchain by digger
• 26,550 points
33 views
0 votes
1 answer

Add Peers does not add a peer in Geth console

Setup actual boot node, don't treat base ...READ MORE

answered Sep 28, 2018 in Blockchain by slayer
• 29,170 points
363 views
0 votes
1 answer
+1 vote
1 answer

Not able to create new account in geth for private ethereum network

Looks like the account you are trying ...READ MORE

answered Dec 6, 2018 in Blockchain by Omkar
• 67,660 points
199 views
0 votes
0 answers

Error: Unexpected token o in JSON at position 1

I have been working with Interacting a ...READ MORE

Mar 6 in Blockchain by saeedi
• 120 points

edited Mar 6 by Omkar 508 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
172 views
0 votes
1 answer
0 votes
1 answer

Geth 'sendTransaction' not working

When transactions are put in a loop, ...READ MORE

answered Jul 3, 2018 in Blockchain by Omkar
• 67,660 points
72 views
0 votes
1 answer

Not able to invoke a contract in Ethereum Private chain using geth

Hope this helps: contract mortal { /* ...READ MORE

answered Oct 22, 2018 in Blockchain by Omkar
• 67,660 points
50 views