Bitcoin Forum
June 03, 2024, 09:11:11 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: i get error when use sendfrom function  (Read 379 times)
aliser (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000



View Profile
January 23, 2014, 01:45:49 PM
 #1

hi everybody

i am create a bitcoin transfer module on php. every functions work (getinfo, listaccounts,blabla) but i can not bitcoin transfer from wallet. my code is :

require_once 'jsonRPCClient.php';

$account='Test';
$toaddress='1LdmknERpJBg695CTrbVmwn1QEExgpjmaF';
$amount=0.01;
$bitcoin = new jsonRPCClient('http://xxxx:xxxx@127.0.0.1:8332/');
$bitcoin->sendfrom((string)$account, (string)$toaddress, (float)$amount);

Everyting is ok but when open the page i get this error message:

Warning: fopen(http://...@127.0.0.1:8332/): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in C:\wamp\www\wallet\jsonRPCClient.php on line 132

But i know Bitcoin-QT is runing and other function is working properly. And there is enough balance for transfer!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!