0

I am trying to develop some application using bitcoin (currently only in the regtest mode). I am aware that one can create a new address using

bitcoin-cli -regtest getnewaddress

RPC call, but I want to know whether bitcoind pre-generates a bitcoin wallet address when we install and run

bitcoind -regtest -daemon

fresh. If yes, how can I know this address?

0

No.

The wallet actually always pregenerates keys (not addresses) and puts them in the keypool. A keys is fetched from the keypool and converted to an address only when an address is explicitly requested (via getnewaddress or from the GUI). An address is not pre-fetched by default.

  • Thank you Andrew. Where can I find these pre-generated keys? – Bajjubaba May 10 at 5:11
  • You can't without using getnewaddress. They are not shown to users as keys by themselves are not particularly useful. – Andrew Chow May 10 at 5:23
  • Right. Thanks Andrew. – Bajjubaba May 10 at 5:38

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.