Unable to create Wallet in testnet

Dear All - I am trying to run bitcoin testnet full node . I have been able create and able to run the bitcoin-cli getblockchain info successfully . However when i am trying to create wallet using bitcoin-cli createaddress it gives an error

error: timeout on transient error: Could not connect to the server 127.0.0.1:18334 (error code 1 - “EOF reached”)

Make sure the bitcoind server is running and that you are connecting to the correct RPC port.

1 Like

You need to use regtest mode!
If you want to use testnet your bitcoind must sync the whole blockchain testnet (ropsten or rinkeby) and flag it in testnet mode.

Run bitcoin-qt or bitcoind with the -testnet flag to use the testnet (or put testnet=1 in the bitcoin.conf file).

Also in Bitcoin-cli you need to flag it wit bitcoin-cli - regtest (or testnet)

More info on how to use regtest:

https://gist.github.com/System-Glitch/cb4e87bf1ae3fec9925725bb3ebe223a

1 Like