0

I have downloaded and fully synced with my Mac last Saturday, my Bitcoin Core version is v0.21.0 and my Bitcoin-Qt version 5.9.8.

I did run other RPC commands such as "getrpcinfo" and it did provide result:

{ "active_commands": [ { "method": "getrpcinfo", "duration": 72 } ], "logpath": "/Users/jsjs77/Library/Application Support/Bitcoin/debug.log" }

"getbalance" -  { "mine": { "trusted": 0.00000000, "untrusted_pending": 0.00000000, "immature": 0.00000000 } }

But then, when I want to run this "generatetoaddress nblocks "address" it does not provide block hash result:  generatetoaddress 11 1MDihWw2UfkYyAwrQDWNFbmaH6bx4NBFtL

 [

]

I have tried the following methods:

bitcoin-cli generatetoaddress 11 1MDihWw2UfkYyAwrQDWNFbmaH6bx4NBFtL.

 Method not found (code -32601)

and

bitcoin-cli -regtest generatetoaddress 11 1MDihWw2UfkYyAwrQDWNFbmaH6bx4NBFtL

Method not found (code -32601)

Is this got to do with the changes of latest version? I really need help. Thanks

enter image description here

0
  1. Open bitcoin.conf and its default location on Mac is $HOME/Library/Application Support/Bitcoin/bitcoin.conf

  2. Save bitcoin.conf with:

regtest=1
  1. Launch Bitcoin Core. You should see a logo color similar to stackexchange:

regtest-qt

  1. Open console and run the below commands:

A. getnewaddress

B. generatetoaddress 11 [Address returned in A]

console-regtest

7
  • You can create a new file with name bitcoin.conf and save regtest=1 in it.
    – Prayank
    Apr 12 at 14:08
  • thanks for your prompt response but when I "right-click" there is no option for me to choose to create a new file.
    – Jsim
    Apr 12 at 14:21
  • Open terminal and run touch bitcoin.conf
    – Prayank
    Apr 12 at 14:30
  • yes and I did.. In the bitcoin.conf - I have insert the following command in terminal: echo "regtest=1" >> ~/.bitcoin.conf. But when I open back, sorry to inform that my Bitcoin Core is not same as yours. Sorry, did I miss anything?
    – Jsim
    Apr 12 at 14:42
  • do you have other suggestions, if you think that I have follow accordingly above but it does not reflect on the Bitcoin Core regtest=1? I need to overcome this problem, thanks.
    – Jsim
    Apr 12 at 15:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.