Error trying to connect my piWallet to my Multichain

+1 vote

Im trying to connect my piWallet to my Multichain for a test but im getting this error


Notice: fopen(): send of 20 bytes failed with errno=32 Broken pipe in /var/www/html/jsonRPCClient.php on line 133

Notice: fopen(): send of 30 bytes failed with errno=32 Broken pipe in /var/www/html/jsonRPCClient.php on line 133

Notice: fopen(): send of 2 bytes failed with errno=32 Broken pipe in /var/www/html/jsonRPCClient.php on line 133

Notice: fopen(): send of 2 bytes failed with errno=32 Broken pipe in /var/www/html/jsonRPCClient.php on line 133

Notice: fopen(): send of 62 bytes failed with errno=32 Broken pipe in /var/www/html/jsonRPCClient.php on line 133

Fatal error: Uncaught exception 'Exception' with message 'Incorrect response id (request id: 1, response id: )' in /var/www/html/jsonRPCClient.php:153 Stack trace: #0 /var/www/html/classes/Client.php(17): jsonRPCClient->__call('getbalance', Array) #1 /var/www/html/classes/Client.php(17): jsonRPCClient->getbalance('zelles(piWallet...', 6) #2 /var/www/html/index.php(22): Client->getBalance('piWallet') #3 {main} thrown in /var/www/html/jsonRPCClient.php on line 153

This are my files

multichain.conf
rpcuser=multichainrpc
rpcpassword=9mrTTszXmzRPEjTfHZPC6uTb5UcaC5i5h1jvcJFKfrTz
rpcallow=127.0.0.1
rpcport=6291


Common.php (piWallet file)
<?php
ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(-1);

session_start();
header('Cache-control: private'); // IE 6 FIX

define("WITHDRAWALS_ENABLED", true); //Disable withdrawals during maintenance

include('jsonRPCClient.php');
include('classes/Client.php');
include('classes/User.php');

// function by zelles to modify the number to bitcoin format ex. 0.00120000
function satoshitize($satoshitize) {
   return sprintf("%.8f", $satoshitize);
}

// function by zelles to trim trailing zeroes and decimal if need
function satoshitrim($satoshitrim) {
   return rtrim(rtrim($satoshitrim, "0"), ".");
}

$server_url = "http://104.131.179.76/";  // ENTER WEBSITE URL ALONG WITH A TRAILING SLASH

$db_host = "localhost";
$db_user = "root";
$db_pass = "mood0261";
$db_name = "wallet";

$rpc_host = "104.131.179.76";
$rpc_port = "6291";
$rpc_user = "multichainrpc";
$rpc_pass = "9mrTTszXmzRPEjTfHZPC6uTb5UcaC5i5h1jvcJFKfrTz";

$fullname = "Bitcoin"; //Website Title (Do Not include 'wallet')
$short = "BTC"; //Coin Short (BTC)
$blockchain_url = "http://blockchain.info/tx/"; //Blockchain Url
$support = "support@yourwebsite.com"; //Your support eMail
$hide_ids = array(1); //Hide account from admin dashboard
$donation_address = "13jy6rHB7HMgQBoYxQQXSM7TFTZZ6CDAAZ"; //Donation Address

$reserve = "0"; //This fee acts as a reserve. The users balance will display as the balance in the daemon minus the reserve. We don't reccomend setting this more than the Fee the daemon charges...........

 

There is an another open source Wallet or SVP Wallet that i can use?

asked Dec 29, 2017 by anonymous

1 Answer

0 votes

This looks like an rpcallowip problem (you mistakenly wrote rpcallow in your multichain.conf file). Assuming the node and application are on the same computer, if you're accessing the MultiChain node API via its public IP address, you need to add that public IP address via rpcallowip. Or you could just use 127.0.0.1 instead.

answered Dec 30, 2017 by MultiChain
...