I have a view-only wallet opened, and from another terminal, I try to run the getbalance example from the Wallet RPC documentation. However, I get a Connection refused
error:
mac:~ user$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"getbalance"}' -H 'Content-Type: application/json'
curl: (7) Failed connect to 127.0.0.1:18082; Connection refused
This is on macOS (Mavericks). Anyone knows why? Should I start the wallet with extra parameters?
--rpc-bind-ip 127.0.0.1 --rpc-bind-port 18082
, but then I get:Error: Wallet password not set.
when startingmonero-wallet-cli
. This is a view-only wallet with an empty password. Update: getting the same error when doing this for a regular wallet.