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 17, 2019 in Blockchain by digger
• 26,740 points
1,283 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 17, 2019 by Omkar
• 69,210 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,740 points
364 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,350 points
2,303 views
0 votes
1 answer
+1 vote
2 answers

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
• 69,210 points
3,539 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, 2019 in Blockchain by saeedi
• 120 points

edited Mar 6, 2019 by Omkar 2,210 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
1,706 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,237 views
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
• 69,210 points
1,201 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
• 69,210 points
734 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP