RPC getnewaddress error on v 0.20.0 I would like to new address generate with this command
bitcoin-cli -testnet getnewaddress &quot;adr1&quot; &quot;p2sh-segwit&quot;  but I get this msg:
error message:
Wallet file not specified (must request wallet RPC through /wallet/&lt;filename&gt; uri-path).
Try adding &quot;-rpcwallet=&lt;filename&gt;&quot; option to bitcoin-cli command line. 

then I added the -rpcwallet command like that:
bitcoin-cli -testnet -rpcwallet=/home/bitcoin/.bitcoin/ getnewaddress &quot;adr1&quot; &quot;p2sh-segwit&quot;  but I got an error again like this:
error message:
Requested wallet does not exist or is not loaded````

what should I do?

thank you
-rpcwallet takes the name of the wallet, not the path to the datadir (as you appear to have done) or the path to the wallet file.
To get a list of the names of the wallets currently loaded, you can use the listwallets command.