questions about php libraries used by Monero
Questions tagged [php]
20 questions
12
votes
2 answers
Are there any Monero specific programming language "libraries" available?
I understand that simplewallet has a raw JSON RPC interface available, but are there any specific "helper" libraries available for a relatively modern programming language(PHP, Python, Java, JavaScript, Ruby)?
choffman
- 123
- 4
9
votes
2 answers
PHP Libraries to assist with Monero integration
Are there any PHP Libraries available to merchants to make integrating Monero payments easier?
How much time is generally required to integrate a Monero payment infrastructure?
Aside from the decision to keep Monero or convert it to another…
J Dog
- 885
- 5
- 17
6
votes
1 answer
How to Connect a a Monero Wallet to a Monero-Based Website and How to Keep it Safe?
I'm hoping to create a Monero-based website based on the work by 'TheKoziTwo' (https://github.com/TheKoziTwo/xmr-integration).
I'm nearing the end of the project and I'm now hoping to connect the wallet to the website, but how do I do so?
There is…
Tekiyama
- 61
- 1
3
votes
2 answers
Is there a simple Monero price lookup API?
I use cryptocompare.com for PHP lookups of Crypto-currency prices (i.e.
https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=USD). But they do not support Monero (XMN) for whatever reason. Is there anything similar for Monero?
Corbin
- 161
- 1
- 4
2
votes
1 answer
Best method to query address balance of 10,000+ monero private keys and store it in a mysql database?
I'm looking to write up a PHP script that can query 10,000 monero private keys to get its balance. Once the balance is updated, it will be stored in a mysql database. I know scanning the monero blockchain can take quite some time for each address.…
Patoshi パトシ
- 4,608
- 4
- 27
- 69
1
vote
1 answer
Trying to better understand monero mining
I'm attempting to write a monero miner in PHP (I know PHP). I'm not after hashing speed I'm after understanding what is happening.
I have looked over the "CRYPTONOTE STANDARD 008" document that seems to explain what to do once I have the block…
tek-dragon
- 11
- 1
1
vote
1 answer
Monero wallet rpc deducts 10 XMR from address when I call the transfer function (incorrect amount)
When I try to call the transfer function over RPC with php-curl.
It sends the incorrect amount out of my subaddress.
Following code:
function send_xmr($from, $to, $xmr)
{
$piconero = bcmul($xmr, '1000000000000');
$ch = curl_init();
…
Ray Orole
- 11
- 2
1
vote
1 answer
Monero wallet RPC transfer issue, intermittent problem
I have Monero on my web app so users can deposit and withdraw Monero at will. My issue is that sometimes it will transfer the users funds and other times it will give an error saying "invalid params".
If anyone can see what the issue is or point me…
MoneroHelpme
- 13
- 3
1
vote
1 answer
What is the best way to implement a deposit system with Monero's RPC calls?
I'm currently building up a service where the user can deposit multiple cryptos. One of them is Monero, and that is where I'm stuck at the moment.
I use PHP for this and the following project: https://github.com/monero-integrations/monerophp
I tried…
FrustratedCoder
- 13
- 2
1
vote
1 answer
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';
$daemonRPC = new…
Monero Developer
- 11
- 1
1
vote
1 answer
Generate Monero Private/Public Key using PHP Only?
I'm trying to generate Private/Public Keys for Monero using only PHP.
This is the library I'm using:
https://github.com/sneurlax/monerophp/blob/master/src/cryptonote.php
This is my code:
require_once('src/cryptonote.php');
$Cryptonote = new…
user984308534545
- 11
- 1
1
vote
1 answer
Creating a wallet from the command line using monero-cli command?
I'm writing up a php script and I want it to execute a monero-wallet-cli command to create a wallet from my private key. I tried to do this via the command line with monero-wallet-cli, but its in interactive mode and I want to be able to stream line…
Patoshi パトシ
- 4,608
- 4
- 27
- 69
0
votes
3 answers
Method not found using Monero JSON-RPC in PHP
Fatal error: Uncaught RuntimeException: Request have return error: Method not found; Request: {"jsonrpc":"2.0","method":"getblockcount","params":null,"id":1}; in jsonRPCClient.php:166
I don't know what to do. I started monero-wallet-rpc on the…
Jennifer Miller
- 1
- 1
0
votes
1 answer
Can I change the RPC timeout time? [PHP]
My wallet-rpc sometimes times out. It gets it done in the end, just not in the time that is required by the PHP walletRPC class. I was wondering if
a) The transfers sent get processed anyway, even if the RPC client times out
and
b) I can change the…
SynataxError
- 5
- 2
0
votes
1 answer
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 know if the "locked" boolean value tells me this…
SynataxError
- 5
- 2