-
m-relay<fineopal:nope.chat> Greetings. I was trying to perform a very simple JSON RPC call to `monero-wallet-cli` which is running on port 28088. I first call `open_wallet` method, according to the docs:
-
m-relay<fineopal:nope.chat> ```
-
m-relay<fineopal:nope.chat> IP=127.0.0.1
-
m-relay<fineopal:nope.chat> PORT=28088
-
m-relay<fineopal:nope.chat> METHOD="open_wallet"
-
m-relay<fineopal:nope.chat> PARAMS='{"filename":"wallet","password":"pass1234"}'
-
m-relay<fineopal:nope.chat> curl \
-
m-relay<fineopal:nope.chat> -u monero:password --digest \
-
m-relay<fineopal:nope.chat> $IP:$PORT/json_rpc \
-
m-relay<fineopal:nope.chat> -d '{"jsonrpc":"2.0","id":"0","method":"'$METHOD'","params":'"$PARAMS"'}' \
-
m-relay<fineopal:nope.chat> -H 'Content-Type: application/json'
-
m-relay<fineopal:nope.chat> The params for get_transfers, along with wallet and password: `{"in": true, "account_index": 1}`
-
m-relay<fineopal:nope.chat> Am I doing it wrong? I tried different public nodes as well.
-
selstadid you try rpc wallet?
-
m-relay<fineopal:nope.chat> I created a normal wallet using `monero-wallet-cli`.
-
m-relay<fineopal:nope.chat> Does RPC commands not work for a normal wallet? The open_wallet seems to be working tho.
-
moneromooomonero-wallet-cli does not do RPC.
-
moneromoooI don't think it listens to any port either.
-
m-relay<fineopal:nope.chat> Shoot. I thought it did. Apologies.
-
m-relay<ofrnxmr:monero.social> You're using the rpc wallet
-
m-relay<ofrnxmr:monero.social> "i'm running monero-wallet-cli with this command: `monero-wallet-rpc`"
-
m-relay<ofrnxmr:monero.social> Your command flags dont make sense though
-
m-relay<fineopal:nope.chat> What's wrong?
-
m-relay<ofrnxmr:monero.social> Youre using --wallet-dir, so --password shouldnt be used
-
m-relay<fineopal:nope.chat> Yeah, that's incorrectly pasted. Not intending to use that flag.
-
m-relay<fineopal:nope.chat> Are there any wrong flags for the get_transfers?
-
m-relay<ofrnxmr:monero.social> if open_wallet works, then other methods should too. If the wallet us not synced / is brand new, it will have to sync the checkpoints before it will respond
-
m-relay<ofrnxmr:monero.social> [#monero-support:monero.social](https://matrix.to/#/%23monero-support:monero.social)
-
moneromoooIf it's monero-wallet-cli, and the wallet is already open from command line args, it might *look* like open_wallet is working when it's failing.
-
m-relay<fineopal:nope.chat> I don't see any syncing logs in the RPC daemon which is running in foreground.
-
m-relay<ofrnxmr:monero.social> --log-level=4
-
m-relay<fineopal:nope.chat> Thanks. I am getting this logs:
-
m-relay<fineopal:nope.chat> ```
-
m-relay<fineopal:nope.chat> 2025-06-06 16:15:36.253 D Skipped block by height: 3386368
-
m-relay<fineopal:nope.chat> 2025-06-06 16:15:36.253 D Skipped block by height: 3387392
-
m-relay<fineopal:nope.chat> 2025-06-06 16:15:36.253 D Skipped block by height: 3388416
-
m-relay<fineopal:nope.chat> 2025-06-06 16:15:36.253 D Skipped block by height: 3389440
-
m-relay<fineopal:nope.chat> 2025-06-06 16:15:36.253 D Skipped block by height: 3390464
-
m-relay<fineopal:nope.chat> 2025-06-06 16:15:36.253 D Skipped block by height: 3391488
-
m-relay<fineopal:nope.chat> 2025-06-06 16:15:36.253 D Skipped block by height: 3392512
-
m-relay<fineopal:nope.chat> 2025-06-06 16:15:36.253 D Skipped block by height: 3393536
-
m-relay<fineopal:nope.chat> 2025-06-06 16:15:36.253 D Skipped block by height: 3394560
-
m-relay<fineopal:nope.chat> I am assuming it's syncing.
-
m-relay<fineopal:nope.chat> Now, it's just spam of this:
-
m-relay<fineopal:nope.chat> ```
-
m-relay<fineopal:nope.chat> 2025-06-06 16:17:21.863 T READ ENDS: Success. bytes_tr: 16384
-
m-relay<fineopal:nope.chat> 2025-06-06 16:17:23.365 T READ ENDS: Success. bytes_tr: 16384
-
m-relay<fineopal:nope.chat> 2025-06-06 16:17:24.309 T READ ENDS: Success. bytes_tr: 16384
-
m-relay<fineopal:nope.chat> 2025-06-06 16:17:25.359 T READ ENDS: Success. bytes_tr: 16384
-
m-relay<fineopal:nope.chat> 2025-06-06 16:17:26.463 T READ ENDS: Success. bytes_tr: 16384
-
m-relay<fineopal:nope.chat> 2025-06-06 16:17:27.783 T READ ENDS: Success. bytes_tr: 16384
-
m-relay<fineopal:nope.chat> 2025-06-06 16:17:28.679 T READ ENDS: Success. bytes_tr: 16384
-
m-relay<fineopal:nope.chat> 2025-06-06 16:17:30.310 T READ ENDS: Success. bytes_tr: 16384
-
m-relay<fineopal:nope.chat> ```
-
moneromoooIf it's syncing, wait. It might not listen to RPC while syncing.
-
m-relay<fineopal:nope.chat> It was showing the block height but now it's a constant spam of the logs pasted above.
-
m-relay<ofrnxmr:monero.social> Its syncing through the checkpoints
-
m-relay<ofrnxmr:monero.social> Will take a few minutes because youre using a remote node. Locally takes like 1min
-
m-relay<fineopal:nope.chat> It has stopped now, does it mean it's done?
-
m-relay<ofrnxmr:monero.social> Probably
-
m-relay<fineopal:nope.chat> Still the same, it's stuck.
-
m-relay<fineopal:nope.chat> Still the same, it's stuck when I call get_transfers.
-
m-relay<ofrnxmr:monero.social> zerobin.net << paste your command here
-
m-relay<ofrnxmr:monero.social> Also try a simple command like get_height
-
m-relay<ofrnxmr:monero.social> if its not finished, its because the wallet is still not synced. Will take a few mins
-
m-relay<ofrnxmr:monero.social> [#monero-support:monero.social](https://matrix.to/#/%23monero-support:monero.social) (-dev is got development, not support)
-
m-relay<ofrnxmr:monero.social> or #monero-support on irc
6 hours ago