Questions tagged [rpc]
Abbreviation for Remote Procedure Call. Used in Monero and related services.
106
questions
19
votes
3answers
18k views
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?
13
votes
2answers
560 views
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 ...
9
votes
2answers
1k views
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 ...
9
votes
2answers
1k views
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 ...
8
votes
2answers
3k views
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 ...
7
votes
1answer
441 views
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?
6
votes
3answers
317 views
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:
{
...
6
votes
2answers
2k views
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-...
5
votes
1answer
953 views
How to get the entire block blob for submission after mining 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 ...
5
votes
1answer
3k views
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, ...
5
votes
1answer
13k views
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 ...
4
votes
2answers
906 views
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 ...
4
votes
1answer
1k views
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?
4
votes
1answer
2k views
As of 0.10.1.0, how do you use monero-wallet-rpc?
Once updating to version 0.10.1.0, in addition to monero-wallet-cli, there is monero-wallet-rpc. What is the difference in usage between the two? What type of commands/arguments that were run ...
4
votes
1answer
865 views
C# simplewallet RPC calls
I'm quite new to cryptocurrencies, and I want to make a program that runs simplewallet (monero-wallet-cli) in the background as an RPC server and make calls to it using C#.
I already somewhat know how ...
4
votes
1answer
154 views
How do I set the user agent in simplewallet?
For using simplewallet in RPC mode. Also, are there any limitations in terms of length or characters that are not allowed?
4
votes
3answers
315 views
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
...
4
votes
1answer
136 views
Drawbacks of running a RPC-enabled node
Besides increased resource requirements, why would someone not want to run a RPC node?
3
votes
1answer
324 views
RPC method to translate key_offsets
This SE answer explains the "key_offsets".
Is there any RPC call to translate theses offsets to their matching outputs ?
3
votes
1answer
341 views
TLS and authentication for RPC
TLS and authentication for RPC has been completed in the Monero dev branch for quite some time. Has it been reworked to fully address any conflicts with net_skeleton's license so that it will be ready ...
3
votes
1answer
1k views
Difference between --rpc-bind-ip 0.0.0.0, or loopback, or actual IP
I run a node from home. I use --rpc-bind-ip as a daemon flag, with my internal/LAN IP address as the argument. With this setup, I can access my node from wallets on different computers inside my LAN....
3
votes
2answers
751 views
Which part of the daemon RPC is restricted?
When running monerod with restricted-rpc which of the rpc methods will not be allowed?
Also, is the daemon RPC documentation on getmonero.org up to date? If not, is there an up to date version ...
3
votes
1answer
329 views
Multiple Users Per Node Via JSON RPC
I have been looking at the JSON RPC Api for connecting to a Node. Can a node support multiple users connecting to it, all with individual wallets...? I've been looking at https://getmonero.org/...
3
votes
1answer
3k views
Error when launching (--rpc-bind-ip) monerod with external IP address: Failed to bind server
I thought I would try and set up a remote node, but I'm getting errors:
$ ./monerod --rpc-bind-ip 31.xxx.xxx.xxx --restricted-rpc --confirm-external-bind
2017-05-30 10:47:13.002 INFO global ...
3
votes
1answer
65 views
Suggestions on how to consistently get more outputs?
I've got a service that frequently runs out of outputs. For this service, sending a heavily split transaction back to my wallet is not practical. Ideally, I would want something like the my return ...
3
votes
3answers
396 views
How can I use Monero RPC via Python
As documented in
https://ww.getmonero.org/resources/developer-guides/daemon-rpc.html
and
https://ww.getmonero.org/resources/developer-guides/wallet-rpc.html,
Monero can be used programmatically using ...
3
votes
1answer
2k views
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 ...
3
votes
1answer
55 views
Is there a `--language` flag for cli wallet?
There's a --password flag and --generate-new-wallet flag, which make programmatic generation of a wallet very easy, except for this missing piece. Ideally a command like this would generate a wallet ...
3
votes
1answer
97 views
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 ...
3
votes
1answer
30 views
List of transaction hashes in chronological order?
Is there a daemon RPC call to get a list of all the latest transactions and their hashes?
3
votes
3answers
740 views
JSON RPC with digest auth
Is there anyone using Monero JSON RPC authentication?
I can only use curl with username:password to request the daemon RPC. But I cannot do the request with nodejs.
Anyone tried with nodejs ...
3
votes
2answers
2k views
Why does my RPC call return “Connection refused”?
I have a view-only wallet opened, and from another terminal, I try to run the getbalance example from the Wallet RPC documentation. However, I get a Connection refused error:
mac:~ user$ curl -X POST ...
3
votes
1answer
100 views
Can view-only wallet create unsigned tx via RPC call?
Can I use RPC to get back a string representing the unsigned tx file?
I'd like to split an unsigned tx into QR codes, and I'd like my app to run the process instead of parallel user interaction with ...
3
votes
1answer
4k views
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 ...
2
votes
1answer
130 views
Protecting myself from myself
Assume that I want to hold all the Monero I currently own for at least a certain period of time but lack the discipline to stop myself from trading. As a horrible trader I want to take control away ...
2
votes
1answer
384 views
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 ...
2
votes
1answer
480 views
Multiple different wallets connected to same monero node
I'm trying to connect multiple wallet-RPC to the same monero node. I have started two separated terminals in order to test the setup and started it with the following command:
./monero-wallet-rpc --...
2
votes
1answer
623 views
Monero RPC over SSL for client and server
I am trying to setup an RPC connection between monerod and monero-wallet-cli over SSL. For monerod, the recommended way seems to be to use nginx as a reverse proxy and add SSL support there. How do I ...
2
votes
1answer
28 views
Get transaction input ring members as public keys
How can I get transaction ring members using the monerod RPC methods?
2
votes
1answer
148 views
Can I process incoming transfers from the daemon RPC?
Can I process incoming transfers using only the daemon RPC and my private view key (so without a wallet)? Or how can I decrypt vout from the get_block output JSON?
2
votes
1answer
88 views
How to restore Monero RPC Wallet from seed
I would like to use the seed to restore wallet from RPC. However, I couldn't find it in this RPC command list below.
https://www.getmonero.org/resources/developer-guides/wallet-rpc.html#...
2
votes
1answer
32 views
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": {
"...
2
votes
1answer
979 views
How to create multiple addresses in a single wallet using Monero-JSON-RPC?
I have few questions related monero payment gateway.
1.) If I want to create more than one address in single wallet using JSON-RPC, then how to do it? I have created integrated address but it does ...
2
votes
2answers
1k views
How to run monero-wallet-rpc in background without revealing my password to the server?
I know that I can run the Monero RPC wallet in the background on Ubuntu by adding a & to the command or by using setsid.
But that would result in me having to use the following code on the ...
2
votes
1answer
692 views
How can I run an open node with RPC restricted only to localhost?
Currently, I can run an open node and connect my wallet from another system (with restricted-rpc to be safe)
OR
I can run the node with RPC enabled (so I can monitor from localhost, eg monerod ...
2
votes
1answer
173 views
How to access to monero rpc from https javascript
I wrote a small javascript to test digest authentication on monerod and monero-wallet-rpc.
When running on a http (no tls) website, authentication works, and I get my response.
Then trying the same ...
2
votes
1answer
265 views
Calculating the circulating supply using daemon RPC
Is there an easy way to calculate the currently circulating supply using daemon RPC calls?
2
votes
1answer
142 views
Using the rpc_access_data method Daemon RPC
Monerod command:
monerod --rpc-bind-ip 0.0.0.0 --restricted-rpc --confirm-external-bind --public-node --rpc-payment-address xxxxx --rpc-payment-credits 250 --rpc-payment-difficulty 1000
Curl request:...
2
votes
0answers
727 views
RPC will not connect to daemon
I attempted to run the Monero RPC, but I am not able to connect to the daemon on either my VPS, which is running a synchronized daemon, or on my Windows PC. This is what happened
I started by ...
1
vote
1answer
342 views
Where can I find Monero public RPC nodes I can connect to?
Is there a public list of public monero RPC nodes I can use for testing purposes?