I have installed bitcoin core running on my local machine. I want to create a new address using bitcoin-cli, executing a command as follows then an error message was displayed. How can I solve it?
$ bitcoin-cli getnewaddress
error code: -32601
error message:
Method not found
The version of bitcoin-core is as follows.
$ bitcoin-cli -version
Bitcoin Core RPC client version v0.18.0.0-742f7dd97
The machine running bitcoin core is virtual machine on VirtualBox on Windows7. The guest OS is ubuntu server and version is as follows.
$ uname -a
Linux ubuntu 4.15.0-45-generic [#48](/bitcoin-bitcoin/48/)-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux