Skip to main content

That command will build a JSON API avaiable on the 1808218082 port. You can check if that works by typing http://127.0.0.1:18082/json_rpchttp://127.0.0.1:18082/json_rpc in your browser.

In this way, you created the instance of Monero PHP library. All the calls are in details on https://getmonero.org/resources/developer-guides/wallet-rpc.htmlthis page page.

That command will build a JSON API avaiable on the 18082 port. You can check if that works by typing http://127.0.0.1:18082/json_rpc in your browser.

In this way, you created the instance of Monero PHP library. All the calls are in details on https://getmonero.org/resources/developer-guides/wallet-rpc.html page.

That command will build a JSON API avaiable on the 18082 port. You can check if that works by typing http://127.0.0.1:18082/json_rpc in your browser.

In this way, you created the instance of Monero PHP library. All the calls are in details on this page.

serhack here.

In order to communicate via php with a Monero wallet you have to run Monero Wallet RPC.

serhack here.

In order to communicate via php with a Monero wallet you have to run Monero Wallet RPC.

In order to communicate via php with a Monero wallet you have to run Monero Wallet RPC.

edited body
Source Link
SerHack
  • 540
  • 4
  • 22
monero-wallet-rpc --rpc-bind-port 1808118082 --disable-rpc-login --wallet-file /path/walletfile

That command will build a JSON API avaiable on the 1808118082 port. You can check if that works by typing http://127.0.0.1:18081/json_rpchttp://127.0.0.1:18082/json_rpc in your browser.

<?php
// Example of Monero RPC Connection  
require_once('src/jsonRPCClient.php');
require_once('src/Monero_Payments.php');

// Edit it with your ip and your port of Monero RPC 
$monero_rpc = new Monero_Payments('127.0.0.1','18081''18082');
$ curl -X POST http://127.0.0.1:1808118082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"getaddress"}' -H 'Content-Type: application/json'
monero-wallet-rpc --rpc-bind-port 18081 --disable-rpc-login --wallet-file /path/walletfile

That command will build a JSON API avaiable on the 18081 port. You can check if that works by typing http://127.0.0.1:18081/json_rpc in your browser.

<?php
// Example of Monero RPC Connection  
require_once('src/jsonRPCClient.php');
require_once('src/Monero_Payments.php');

// Edit it with your ip and your port of Monero RPC 
$monero_rpc = new Monero_Payments('127.0.0.1','18081');
$ curl -X POST http://127.0.0.1:18081/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"getaddress"}' -H 'Content-Type: application/json'
monero-wallet-rpc --rpc-bind-port 18082 --disable-rpc-login --wallet-file /path/walletfile

That command will build a JSON API avaiable on the 18082 port. You can check if that works by typing http://127.0.0.1:18082/json_rpc in your browser.

<?php
// Example of Monero RPC Connection  
require_once('src/jsonRPCClient.php');
require_once('src/Monero_Payments.php');

// Edit it with your ip and your port of Monero RPC 
$monero_rpc = new Monero_Payments('127.0.0.1','18082');
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"getaddress"}' -H 'Content-Type: application/json'
Source Link
SerHack
  • 540
  • 4
  • 22
Loading