Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: AgoraLive on February 15, 2015, 06:51:21 PM



Title: php importprivkey ?????????
Post by: AgoraLive on February 15, 2015, 06:51:21 PM
Why doesn't this work (don't worry, the wallet is empty now)

$bitcoin->importprivkey(7AAMVEfPJ89j5EAwr1s2JHvSpLbdSmwbUnJUWuAfPBknvdRptVf test);

Other jsonrpc commands are working....

$bitcoin->getbalance();


Title: Re: php importprivkey ?????????
Post by: AgoraLive on February 15, 2015, 07:04:31 PM
That's because it is for an ALTCOIN, but the JSONRPC should still be the same???


Title: Re: php importprivkey ?????????
Post by: AgoraLive on February 15, 2015, 07:34:46 PM
$bitcoin->importprivkey("privatekey", "Label");

This was the solution, thank you  ;D