I am currently experimenting on testnet.

  • server a = monero wallet
  • server b = website

I have the monerod client synced. I run the monerod and monero-wallet-rpc on server a. I want to make my commands from server b. monero rpc command

./monero-wallet-rpc  --wallet-file testwallet --password test --rpc-bind-port 28080 --daemon-address --testnet --daemon-login test:test

monerod command

./monerod  --rpc-login test:test --testnet --rpc-bind-ip= --log-level=1

It gets stuck at

2018-02-01 22:42:51.060     7f577a44b780        INFO    global  contrib/epee/include/net/http_server_impl_base.h:76      Binding on
2018-02-01 22:42:51.060     7f577a44b780        WARN    wallet.rpc      src/wallet/wallet_rpc_server.cpp:2945    Starting wallet rpc server

Any attempts to contact the RPC server from server b results in 401 unauthorized. When I start the monero-wallet-cli it works well.

  • Do you want to access monerod RPC or monero-wallet-cli RPC (or both)?
    – user36303
    Commented Feb 1, 2018 at 22:58
  • Just the rpc. The wallet-cli works fine and all commands work
    – Anekdotin
    Commented Feb 1, 2018 at 23:01
  • The monerod says "synchonized ok" and seems fine with testnet blockchain. I also built it from source using git pull yesterday
    – Anekdotin
    Commented Feb 1, 2018 at 23:03
  • apparently with running log level=4 on the rpc, it shows the balance, and the 401 when i issue a command
    – Anekdotin
    Commented Feb 1, 2018 at 23:12
  • Add the --disable-rpc-login to monero rpc command in order to disable the login. 401 http error is UNAUTHORIZED error.
    – SerHack
    Commented Feb 2, 2018 at 13:46

3 Answers 3


401 HTTP error is defined as UNAUTHORIZED error meaning you don't have the permission to call the RPC API.

At the moment, Monero Wallet RPC requires authentication by default, username is: monero , password is a randomly generated string.

To disable the login: add the --disable-rpc-login flag to the command line.

If you want to specify a username and a password, add the --rpc-login username:password where username is your username and password is your password.


It seem like you have started the RPC correctly. Usually the RPC just stops at 'Starting wallet rpc wallet server' You are getting 401 because you might not be using using digest auth. You need to provdide the credentials used with --rpc-login rpc_username:rpc_password like this - curl -u rpc_username:rpc_password --digest -X POST.....


I had to explicitly specify digest authentication to get past this with curl

curl -u monero:APASSWORD --digest -X POST '{"jsonrpc":"2.0","method":"getaddress","params": null,"id":"11111"}'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.