setEtherbase() not working in geth

0 votes

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
• 27,620 points
16 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 65,840 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
• 27,620 points
18 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,040 points
157 views
0 votes
1 answer
0 votes
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
• 65,840 points
34 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 112 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
63 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
• 65,840 points
36 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
• 65,840 points
27 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.