I'm aware of the get_balance
function - https://www.getmonero.org/resources/developer-guides/wallet-rpc.html#get_balance
$ curl http://127.0.0.1:18082/json_rpc -d
'{"jsonrpc":"2.0","id":"0","method":"get_balance",
"params":{"account_index":0,"address_indices":[0,1]}}'
-H 'Content-Type: application/json'
===>
{.............}
However, it doesn't show how, at what point use the private view key, nor any keys at all.
How?
monero-wallet-rpc
. I've asked about RPC, and making requests to an RPC node – Kum Dec 02 '22 at 16:48monero-wallet-rpc
is the thing RPC you'd use. There are two different RPC interfaces with Monero: wallet and daemon. As you're asking about wallet functionality (balance), you use the wallet RPC. – jtgrassie Dec 02 '22 at 20:06monero-wallet-rpc
documentation in your question. – jtgrassie Dec 02 '22 at 20:16get_balance
wallet RPC method. There is no daemon (remote or local) RPC method to get a wallets balance. – jtgrassie Dec 03 '22 at 05:33get_balance
. Whether it require or involve wallet or not -- I have no idea. What I do know is that I want to get a balance of a certain address. And preferably without having to get a wallet andwallet-cli
into this in any way. That is, via remote RPC node. What will this be? – Kum Dec 04 '22 at 01:21