Advertisement
Guest User

Untitled

a guest
Jan 26th, 2022
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. start the wallet rpc like this without setting a daemon
  2. ./monero-wallet-rpc --rpc-bind-port 18082 --wallet-dir . --disable-rpc-login --log-level 4 --non-interactive
  3.  
  4. so it will respond instantly to requests.
  5. afterwards you can set the daemon connection like so:
  6. #!/bin/sh
  7. IP=127.0.0.1
  8. PORT=18082
  9. METHOD="set_daemon"
  10. PARAMS="{\"address\":\"node.sethforprivacy.com:18089\"}"
  11. curl \
  12. -u username:password --digest \
  13. http://$IP:$PORT/json_rpc \
  14. -d '{"jsonrpc":"2.0","id":"0","method":"'$METHOD'","params":'"$PARAMS"'}' \
  15. -H 'Content-Type: application/json'
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement