Questions tagged [rpc]

Abbreviation for Remote Procedure Call. Used in Monero and related services.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

I am allowing partial refunds on my monero-integrated store, how do I prevent the fee being deducted from the balance that is left over?

I want the fee to be deducted from the refunded amount. For example, Given a fee of 1 XMR If I refund 100 xmr from a 200xmr account, I would like the refunded amount to be 99 XMR (100-1) and the ...
SynataxError's user avatar
0 votes
0 answers
14 views

PHP RPC: how do I get the "min_fee" value so I do not exceed balance + min_fee when sending a transaction?

I keep getting an error when I want to send my entire balance (not using sweep_all but transfer_split). It says that the "needed_money + min_fee > balance_subtotal". So, I need to at ...
SynataxError's user avatar
0 votes
0 answers
43 views

Testnet wallet rpc "not enough money" despite balance being adequate

When I call get_balance: $ curl http://127.0.0.1:2024/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_balance","params":{&...
SynataxError's user avatar
0 votes
0 answers
8 views

Why does my testnet contuinously throw errors?

I have three private testnet nodes set up, and one wallet-rpc that connects to one of those three nodes (which are all connected to eachother as peers). I am constantly having to delete the walllet ...
SynataxError's user avatar
0 votes
0 answers
15 views

Given the below payment model, how do I prevent my main wallet from being drained on my e-commerce store?

Via the wallet-rpc api An integrated address is generated for a one-time payment User pays to address User is refunded excess payments It is currently implemented like so: A walletRPC wrapper ...
SynataxError's user avatar
0 votes
0 answers
18 views

"Unable to send transaction(s) via Dandelion++ stem" error when sending transaction using monerophp monero-integrations/monerophp transfer_split

I am using the testnet for your information, and this error keeps popping up after calling the walletRPC::transfer_split() method. I have no clue what to do. And not really sure what to do, for what ...
SynataxError's user avatar
0 votes
1 answer
31 views

Does the "get_payments" JSON RPC call respond with the "locked" value as true *only* if the confimations are below 10?

I am creating an e-commerce website that accepts monero using the monero JSON RPC API. I need to make sure the confirmations of a payment for any single order are equal to or above 10, I would like to ...
SynataxError's user avatar
0 votes
0 answers
27 views

My balance of a address on my wallet RPC does not change [duplicate]

I am currently using Monero RPC with the stagenet. I have two addresses. Using a Monero stagenet faucet, I received 10 XMR, and everything works because my balance for the first address is 10,000,000,...
mxrvin.thiele's user avatar
0 votes
0 answers
16 views

Send all balance to multiple destinations using the rpc?

I'm using the ts integration of the RPC, and was wondering if it's possible to send the whole balance like the sweeping do, but to multiple wallets? I know it's possible to send to multiple addresses ...
GuestAskingDumb1337's user avatar
0 votes
1 answer
32 views

Can't start Monero RPC Node

I'm trying to start an RPC node but the command below has only works once monero-wallet-rpc --rpc-bind-port 18081 --wallet-file monero-pool --prompt-for-password --daemon-address 127.0.0.1:18089 --...
J_P's user avatar
  • 11
0 votes
1 answer
35 views

Maximum subaddresses per account & wallet

Is there a maximum number of subaddresses you can generate using wallet-rpc? Can't find this in the documentation
fewer582's user avatar
2 votes
1 answer
72 views

API for manipulating raw, unsigned transactions

I'm trying to create something which involves messing with (unsigned) transaction data, using the Rust library monero-rs. All I need to do is import an unsigned transaction, access the contents, then ...
Neatness2253's user avatar
1 vote
1 answer
48 views

`generateblocks` method not found, when called via json-rpc

I am using Moner (Monero 'Fluorine Fermi' (v0.18.1.2-release)) on ubuntu. I am running a regtest with this .conf file and these command line flags: bitmonero.conf. # /etc/monero/monerod.conf #custom ...
Asad Hayat's user avatar
2 votes
1 answer
194 views

How to get the balance of a wallet given a private view key, via RPC?

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"...
Kum's user avatar
  • 25
0 votes
1 answer
25 views

get_block returns empty tx_hashes array

I am trying to use the get_block JSON RPC endpoint documented here: https://www.getmonero.org/resources/developer-guides/daemon-rpc.html#get_block The trouble I'm having is that when I call it, the ...
Nick W.'s user avatar
  • 105
0 votes
2 answers
84 views

Can I use testnet open node for making rpc requests about testnet? If yes, what am I doing wrong (trying to get block height)?

I'm exploring what APIs are available to explore mainnet and testnet and a small task I'm trying to do is to get block height of testnet. Docs about networks tell that there's a testnet open node: ...
YakovL's user avatar
  • 105
2 votes
1 answer
150 views

Monero Regtest: How do I generate 'n' blocks to my wallet?

How do I get started with a monero Regtest node? I am running monerod with --regtest, but when I mine, the difficulty quickly increases to a point where I need to wait an hour to generate a fair ...
TheCharlatan's user avatar
1 vote
1 answer
126 views

How to get the transaction ID for a given output?

How to get the transaction ID for a given output (from the transaction I am looking for)?
needprayfornotaxes's user avatar
1 vote
1 answer
92 views

Monero daemon events for incoming transactions

Suppose I have a database with 10k users each having a dedicated wallet. Based on my knowledge, the only way to know in real time when funds have been sent to those wallets is by constantly pooling ...
user8555937's user avatar
1 vote
1 answer
64 views

Does monerod generates new block template on a repeat call of get_block_template?

I want to know if it's safe to assume that multiple calls of get_block_template rpc method will give me the same block template until the blockchain is updated. By updating, I mean the appearance of a ...
Oroffe's user avatar
  • 185
2 votes
1 answer
130 views

Multisig MMS usage

Is the mms available through the JSON RPC? I was having luck without using the mms by using the JSON RPC multisig calls, by subclassing monero-python's JSONRPCWallet, up until creating a transaction. ...
ciferecaekzisto's user avatar
1 vote
1 answer
551 views

What is the difference between Sweep All and Sweep Single?

The Monero source code specifies sweep single, and sweep all in its RPC Server Commands section. What is the difference?
Anonymous's user avatar
1 vote
1 answer
97 views

Monero RPC command for getting global index of one-time public key

I know there is a Monero RPC command /get_outs for getting one-time output (stealth address) information, including the public key, from the global index of the output. Is there a reverse command? In ...
Jerfov2's user avatar
  • 111
1 vote
1 answer
97 views

How do I get the weight of a transaction from the RPC daemon

I'm trying to look at the distribution of fees per kb of weight, but all I can find in the RPC connection to the daemon is the fees of a transaction. Note that I want the weight of a transaction, not ...
Bart Marinissen's user avatar
2 votes
1 answer
73 views

Get transaction input ring members as public keys

How can I get transaction ring members using the monerod RPC methods?
needprayfornotaxes's user avatar
1 vote
1 answer
647 views

How does a user pay a monero node operator via the RPC pay feature?

The latest monero update gave users the ability to pay monero node operators via the RPC pay to feature. How does a monerujo android app or monero-cli query the monero address of a node operator to ...
Patoshi パトシ's user avatar
1 vote
1 answer
31 views

Can the expected reward from the block template differ from a actual one after mining?

As we know, we can find a value expected_reward in a response of a request getblocktemplate to a monerod. Following the documentation: expected_reward - unsigned int; Coinbase reward expected to be ...
Andrei's user avatar
  • 367
1 vote
1 answer
449 views

Mining for rpc set number of threads

In the monero-wallet-cli having connected to a public node that accepts or requires payment via mining how does one adjust the number of threads used for the mining payment. For example, when you run ...
t-900's user avatar
  • 61
2 votes
1 answer
332 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:...
t-900's user avatar
  • 61
2 votes
1 answer
482 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 ...
Mogens TrasherDK's user avatar
1 vote
2 answers
2k views

"Error: Problem fetching info-- rpc_request:" when running monerod as service

I have set up monerod to run as a service so it is easier to manage. Service file: [Unit] Description=Monero Full Node After=network.target [Service] User=monero Group=monero WorkingDirectory=/mnt/...
slightly_toasted's user avatar
1 vote
1 answer
145 views

What is miner_tx_hash?

I am trying to figure out the Daemon RPC API. Requesting a block with get_block(), the block header has a field miner_tx_hash. The block also contains a JSON field miner_tx, which contains the ...
kg_sYy's user avatar
  • 147
0 votes
1 answer
80 views

How does it affect my node when I get the message: "No incoming connections - check firewalls/routers"

I don't have any ports open and I get the message: "No incoming connections - check firewalls/routers". What does this impact on my node? Can I still connect to my node locally and use its RPC ...
Patoshi パトシ's user avatar
1 vote
1 answer
1k 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?
Patoshi パトシ's user avatar
2 votes
1 answer
228 views

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 ...
PyrolitePancake's user avatar
3 votes
1 answer
126 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 ...
user36303's user avatar
  • 34.8k
6 votes
1 answer
6k 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, ...
Xyz's user avatar
  • 83
0 votes
1 answer
293 views

How to get the transaction public key and outputs from get_transactions?

I'm trying to get the outputs and tx public key according to this answer. I know that the transaction public key must be in the "extra" section. When I ran the get_transactions command, I got this ...
Guga Todua's user avatar
1 vote
1 answer
105 views

Monero blockchain fetch blocks by date

I'd like to use the Monero API. Is there a REST API method which can fetch Monero blocks by specific date? Thanks Sajudeen
saju's user avatar
  • 13
2 votes
1 answer
344 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?
intosKai's user avatar
3 votes
1 answer
110 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 ...
Dr-Bracket's user avatar
0 votes
1 answer
115 views

Can't create new wallet via RPC

I tries create new wallet from bash, but when i call create_wallet request is freezed and wallet-rpc writes: 2019-09-30 09:30:08.230 T [sock 0x561888dca810] new connection from 127.0.0.1:57864 INC to ...
intosKai's user avatar
1 vote
1 answer
223 views

RPC is node fully synced

In my test environment, which is ssh,bash and screen, I'm launching a monerod followed by several other programs wallet-rpc/cli and more, which are all depending on monerod. To prevent any confusion, ...
Mogens TrasherDK's user avatar
0 votes
1 answer
141 views

Scanning and updating Monero balance with private key using only monerod rpc?

I'm trying to build out a wallet service and need to figure out how to use the monero rpc commands to update a users balance. In my database, I have a bunch of user's private keys. How do I update ...
Patoshi パトシ's user avatar
1 vote
1 answer
222 views

Can the monero-wallet-rpc handle multiple requests at the same time?

For example, to process several "transfer" requests in parallel. The question is about this implementation of the wallet. I can't figure it out quickly on my own.
Oroffe's user avatar
  • 185
0 votes
1 answer
524 views

Digest authentication with monero-wallet-rpc

I started monero-wallet-rpc on a remote server (with login and password): ./monero-wallet-rpc --rpc-bind-port 18082 --wallet-dir ./wallets_test --rpc-login test:test --testnet --daemon-host node....
newbie's user avatar
  • 13
1 vote
0 answers
145 views

Monero Wallet RPC stops responding to Monero Python module after some time

I wrote a program that repeatedly requests for JSON responses from a Monero Wallet RPC at some time intervals ranging from 10 seconds to a minute. Everything is running on a testnet in my local ...
John G's user avatar
  • 53
1 vote
1 answer
227 views

How to get the base transaction hash from the blocktemplate_blob [duplicate]

I want to know how to generate different blockhashing_blobs using blocktemplate_blob, returned by the RPC get_block_template method, with different extra fields. To do this, I need to manually ...
Oroffe's user avatar
  • 185
1 vote
1 answer
186 views

Using monero-php, I am getting "Method not found" when calling open_wallet

I want to open my Monero testnet wallet via a php script using a remote node but it's returning: "Method not found". Here is the code I am using: $hostname = 'node.xmr.to'; $port = '28081'; $...
Monero Developer's user avatar
3 votes
1 answer
38 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?
Sri davei's user avatar
  • 167