Abbreviation for Remote Procedure Call. Used in Monero and related services.
Questions tagged [rpc]
116 questions
21
votes
3 answers
What Ports Does Monero Use? (RPC, P2P, etc.)
What is the Monero P2P port?
What is the Monero RPC port?
What purposes do the different ports serve? Are there other ports Monero needs to have setup properly in order to use extra features?
JohnHanks
- 761
- 1
- 7
- 18
14
votes
2 answers
Calculate fee before sending while using RPC calls
Is there any way to find out what the fee of a certain transaction will be before sending it, via RPC calls?
As a side note, is it possible to see the transaction fee on a transfer via RPC from the returned TX hash/key?
Edit: If this is currently…
Quentin Skousen
- 938
- 5
- 24
9
votes
2 answers
Why was 0MQ selected to replace the current RPC system?
What are the benefits particularly?
I've heard it's more efficient, is that in terms of bandwidth? I've also heard it will allow for block and I believe transaction notification, which currently must be done by polling.
Are these the only two…
jwinterm
- 4,413
- 1
- 21
- 34
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
8
votes
2 answers
How do I use a computer with a wallet to access a headless node at my home?
I'm running a headless, low wattage Ubuntu 16.04 (x86, if that matters) system that I have SSH'ed into, ran Screen, ran ./monerod, and then detached the Screen. This is my node. I also set up this system with a static IP, both within Ubuntu and…
scoobybejesus
- 5,515
- 21
- 42
7
votes
1 answer
How to query the memory pool?
Block explorer explorer.xmr.my shows the contents of the memory pool. Does monerod, monero-wallet-cli or another CLI utility allow to query the Monero's memory pool? If so, how?
dpzz
- 4,539
- 4
- 22
- 46
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
6
votes
1 answer
How do the new rpc-payment... options for monerod work?
V0.15 / Carbon Chameleon seems to have introduced new rpc options for a monero node.
How do the following options actually work?
rpc-payment-address
rpc-payment-difficulty
rpc-payment-credits
Also, is there a way to exempt your own wallet from…
Xyz
- 83
- 1
- 5
6
votes
2 answers
Wallet RPC API wallet creation
I decided to build a python GUI wrapper around monerod and monero-wallet-rpc. Following https://getmonero.org/knowledge-base/developer-guides/wallet-rpc and https://moneroexamples.github.io/python-json-rpc/ are great, but this requires a wallet to…
nthterm
- 185
- 7
5
votes
1 answer
How to get the entire block blob for submission after mining a nonce?
After mining a correct nonce on the block template (received from rpc method "getblocktemplate") you need to submit the block back to the daemon. However, the rpc method "submitblock" appears to require the entire block blob. The template does not…
The Shoe Shiner
- 289
- 1
- 9
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
4
votes
3 answers
How to close a wallet without stopping the RPC server?
I am trying to use RPC to perform such actions as:
Check balance and make transfers using selected wallet
The needed wallet should be unlocked just before any tranfer and locked immediately after
monero-wallet-rpc (with --wallet-dir option) can do…
Sovan
- 51
- 1
- 1
- 3
4
votes
1 answer
Monero wallet doesn't connect to local daemon
I have a Monero daemon running on a Raspberry Pi connected to my LAN and it worked fine for sometimes, but lately, I'm unable to connect wallet from another PC to it.
When the issue has happened for the first time, I followed the suggestion to…
cialu
- 1,661
- 13
- 44
4
votes
2 answers
How to get network hashrate from monero daemon via RPC?
When the Monero daemon is running, the monerod status command prints the network hashrate .., net hash 287.52 MH/s,... I couldn't find any mentions of network hashrate in the Monero daemon RPC documentation.
Is it possible to somehow get this…
BartoNaz
- 153
- 6
4
votes
1 answer
How to extract data from local blockchain
How to extract data, blocks from blockcain stored on local disk drive, and acquire it through some usual data transfer chanel (eg. JSON) in other application?
Dragutin
- 205
- 1
- 5