Abbreviation for Remote Procedure Call. Used in Monero and related services.
Questions tagged [rpc]
123 questions
9
votes
2 answers
Can someone give me an example of doing a json-rpc call such as getbalance in java
I want to be able to use monero as a payment method in my website. It's completely written in java spark. I am unfamiliar with using curl or json rpc in java and would like someone to give an example of how to do it.

HashTables
- 456
- 1
- 4
- 11
6
votes
3 answers
getbalance json-rpc call just gives one big integer
When i run the curl command:
curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"getbalance"}' -H 'Content-Type: application/json'
It gives me a balance like so:
{
"id": "0",
"jsonrpc": "2.0",
"result": {
…

HashTables
- 456
- 1
- 4
- 11
5
votes
1 answer
How to convert curl to http url
How do i convert this curl command:
curl -X POST http://127.0.0.1:18082/json_rpc -d
'{"jsonrpc":"2.0","id":"0","method":"getbalance"}' -H 'Content-Type:
application/json'
Into a normal http url?

HashTables
- 456
- 1
- 4
- 11
3
votes
1 answer
Help me with digest authentication using java
So i am trying to authenticate myself to the monero-rpc-wallet, the server requires me to use digest authentication.
If my username is: Alladin and password: open sesame
The www-authenticate header looks like this:
WWW-Authenticate: Digest…

HashTables
- 456
- 1
- 4
- 11
3
votes
1 answer
What is Primo (Private Monero Payments)?
With the introduction of payment for service in Monero (https://github.com/monero-project/monero/pull/5357), the Primo project was released (https://repo.getmonero.org/selene/primo) to make use of that feature. What is Primo, and how can it help…

user36303
- 34,858
- 2
- 57
- 123
2
votes
1 answer
Is there an RPC call to get the txFee of a block?
getblockheaderbyheight and any other simmilar calls only returns the data below. None of the other calls returns the txFee of the block
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"block_header": {
"depth": 78376,
"difficulty":…

kuchi
- 123
- 3
2
votes
1 answer
Can't request balance using RPC
I'm trying using C#.
Getting the following error message:
{
"error": {
"code": -32700,
"message": "Parse error"
},
"id": 0,
"jsonrpc": ""
}
Basically doing the following, which should work.
Could anyone shed some light? Been looking at…

MerkelMan
- 21
- 1
2
votes
1 answer
How to determine the software version of an RPC node?
If I connect to a remote RPC node, is there a request to determine what release of Monero it is running?
For example, I might prefer an RPC node running v15.0.0 including the recent side channel mitigation.
I have already looked at…

PyrolitePancake
- 175
- 10
0
votes
1 answer
JSON-RPC Not Working as Shown in Wallet Guide
I am trying to follow the example from https://getmonero.org/resources/developer-guides/wallet-rpc.html#getbalance
and getting this result:
$ curl -X POST http://127.0.0.1:18081/json_rpc -d…

hxsquid
- 1