Questions tagged [php]

questions about php libraries used by Monero

Filter by
Sorted by
Tagged with
12 votes
2 answers
744 views

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, ...
choffman's user avatar
  • 123
9 votes
2 answers
2k views

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 ...
J Dog's user avatar
  • 885
6 votes
1 answer
383 views

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 ...
Tekiyama's user avatar
2 votes
2 answers
4k views

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. ...
Corbin's user avatar
  • 151
2 votes
1 answer
519 views

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 ...
Patoshi パトシ's user avatar
1 vote
1 answer
635 views

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:/...
FrustratedCoder's user avatar
1 vote
1 answer
64 views

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, '...
Ray Orole's user avatar
1 vote
1 answer
447 views

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". ...
MoneroHelpme's user avatar
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
1 vote
1 answer
302 views

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: ...
user984308534545's user avatar
1 vote
1 answer
156 views

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 ...
Patoshi パトシ's user avatar
1 vote
1 answer
294 views

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 ...
tek-dragon's user avatar
0 votes
1 answer
42 views

Help with monero-integrations/monerophp error

I downloaded the case study from https://github.com/monero-integrations/monerophp. I have also made the necessary arrangements but I am getting an error:
percl's user avatar
  • 1
0 votes
3 answers
1k views

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 ...
Jennifer Miller's user avatar
0 votes
1 answer
15 views

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 ...
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
30 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
1 answer
28 views

Monero payment processing & confirmation in PHP

I would like to create a payment gateway for the Monero crypto currency on my website. As practise, I don't want to use a third party payment processor. I was thinking JSON RPC calls would be a good ...
SynataxError's user avatar
0 votes
0 answers
166 views

Problem using the monero-integrations/monerophp library

I downloaded the Monero CLI wallet and the monero-integrations/monerophp library. After, I ran: ./monero-wallet-rpc --daemon-address 86.181.101.213:18089 \ --wallet-file testwallet --password 1234 ...
kellophoo's user avatar
0 votes
1 answer
227 views

Monerod causes 404 error nginx after curl call

OS: Debian 10 Buster APP: Nginx, php, mariadb, Monero On my host I have a test script (test.php) to call my daemon (http://127.0.0.1:18081/json_rpc): $ch = curl_init(); curl_setopt_array($ch, [ ...
MAB's user avatar
  • 1
0 votes
1 answer
170 views

Monero RPC get_transfer by php monero-integrations

I try to get the transaction by calling get_transfer, but I dont know how to send the $subaddr_indice to get the right answer back i have: [subaddr_indices] => Array ( ...
pdevo's user avatar
  • 1