function transferBetFunds($from, $to, $amount = 0) { try { $bitcoind = new jsonRPCClient('http://' . $this->__get("username") . ':' . $this->__get("password") . '@' . $this->__get("btcserver") . ':' . $this->__get("btcport") . '/'); if ($bitcoind->move($from, $to, $amount)) { return true; } else { return false; } } catch (Exception $e) { return false; } }
function funct_Billing_JSONRPC_Move($strWalletAddressFrom, $strWalletAddress, $intAmount) { //send to an address from an address $mybtc = new jsonRPCClient(JSONRPC_CONNECTIONSTRING); //- ** requires second password try { //return print_r($mybtc->listaccounts($intConfirmationsCountMin) ); $strResponse = $mybtc->move($strWalletAddressFrom, $strWalletAddress, $intAmount); return $objJSON; } catch (Exception $e) { $strResponse = $e->getMessage(); } return $strResponse; }