Hot answers tagged

5

Quoting the relevant commit message: daemon, wallet: new pay for RPC use system Daemons intended for public use can be set up to require payment in the form of hashes in exchange for RPC service. This enables public daemons to receive payment for their work over a large number of calls. This system behaves similarly to a pool, so payment takes the form of ...


4

Since Monero 0.15.0.0, you can use the public_nodes command in monero-wallet-cli. It will query your daemon, as the list is now shared over the P2P network. This can be used in tandem with the bootstrap daemon mode, so you can use RPC services before your node has finished syncing. Similarly, the print_pl daemon command now accepts a publicrpc parameter to ...


3

Take a look at a response to issue #2351: You can send 50 monero 20 times in one tx to yourself (make sure you have set merge-destinations to 0 first). This will break up the 1000 output. Also set min-outputs-count and min-outputs-value to, say, 20 and 10, see the commit message for 0ad87db for an explantion of how they work. Last, you can pay several ...


2

I have found the best way to deal with this is just to start them all up at once. Monero RPC methods that are dependent on a fully synchronized blockchain will return with a relevant status code if the chain is not fully synced, and thus code can deal with this scenario as and when this happens. If you find a situation it's imperative the blockchain is ...


2

No. However, you can get blocks by height, and height maps fairly well to date. There are on average two minutes per block since height 1009827, and one minute per block before that. It's then a simple conversion. To get blocks by height, use the getblockheadersrange, which has start_height and end_height parameters. Example: curl -X POST http://127.0.0....


2

The daemon (monerod) has no wallet functionality, it's for working with the blockchain. To determine incoming transactions for a given wallet (e.g. viewable and spendable using your wallet keys), you would need to scan the blockchain for outputs owned by your wallet and check their spent status. A full scan (in pseudo code) looks something like follows (...


2

There is currently no way to mine with multiple threads in monero-wallet-cli for the mine-for-RPC system.


2

Primo is a protocol and associated suite of software allowing a website to request payment for service by mining Monero to an address owned by the website owner. Primo enables the following scenario: Maureen is a webmistress, and she quite frankly doesn't like the way the web is full of advertisements/malware, and decides to get income from her website in ...


2

The latest monero update gave users the ability to pay... Actually this feature was released in v0.15, not the latest release. How does... Instead of me copying verbatim the commit message or each related flag/command, here is the direct link to the commit for which the commit message thoroughly documents the feature: github.com/monero-project/monero/...


1

1) So long as you don't edit the block template returned (i.e. you don't add a load more data or change the transactions included), expected_reward is what you would receive if you mined a block based on that template. If you added or removed transactions, the fees collected would obviously change. If you changed the overall size of the block (added more ...


1

You are getting a CORS error: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://server.ip.address:38083/json_rpc. (Reason: CORS request did not succeed). The wallet RPC has a parameter --rpc-access-control-origins which you will need to set to the domain hosting your javascript. From the help: --rpc-...


1

The RPC does not return connection info when running the status command because it is a restricted RPC and restricted RPCs do not return any privacy sensitive info. In order to get the proper output to the status command it must be run against an unrestricted RPC port. It is possible to run a node with both restricted and unrestricted RPC ports. This would ...


1

So what exactly the miner_tx_hash field in the block, and what is its relation to the miner_tx and other transactions in the block? miner_tx_hash is just that - the transaction hash of the miner transaction. The miner transaction is the transaction that pays out the reward for mining the block. The inputs to this tx are type gen as they literally generate ...


1

How to get the transaction public key and outputs from get_transactions? Parse the field named extra to get the public key. The 32 bytes after the byte 0x01 is the tx public key. The output keys are in txs[].as_json.vout[].target[].key if you used the parameter decode_as_json:true.


1

You have given a login for the daemon, but no password. monero-wallet-rpc is an unattended program, so does not prompt. You need to pass the password after the login, with a separating colon, like this: --daemon-login root:pass Arguably, there should be a --prompt-for-daemon-password option, which would override the unattended part.


1

First, I'd suggest thinking harder about your design choice of holding users private keys. If you're going to have full custody of users wallets, it begs the question why have per-user wallets in the first place. It's your wallet if you hold the keys, so you could just just assign accounts/subaddress to customers for example. Second, if you're going to ...


Only top voted, non community-wiki answers of a minimum length are eligible