Post
Topic
Board Bitcoin Technical Support
Re: Why bitcoin send operation is throwing error ?
by
retweeting
on 13/01/2016, 17:22:36 UTC
What version of php are you using? This was mentioned a few months back on github: https://github.com/blockcypher/php-client/issues/1

I did some work for someone with an Arch linux server, was forced to downgrade php version to get it to work, it seems their API breaks against some upgrades. Undecided
Thanks for the pointer. That issue resolved after upgrading the version, but a new one has popped up. Now it is throwing...

Fatal error: Uncaught exception 'BlockCypher\Exception\BlockCypherSignatureException' with message '1 private keys do not correspond to any input. Please check private keys provided.' in /www/myserver.com/blockcypher1/php-client/blockcypher/php-client/lib/BlockCypher/Api/TXSkeleton.php:148 Stack trace: #0 /www/myserver.com/blockcypher1/php-client/blockcypher/php-client/lib/BlockCypher/Api/TXSkeleton.php(96): BlockCypher\Api\TXSkeleton->generateSignatures(Object(BlockCypher\Crypto\PrivateKeyList), 'btc') #1 /www/myserver.com/blockcypher1/php-client/blockcypher/php-client/lib/BlockCypher/Client/TXClient.php(35): BlockCypher\Api\TXSkeleton->sign(Array, 'btc') #2 /www/myserver.com/blockcypher1/send.php(19): BlockCypher\Client\TXClient->sign(Object(BlockCypher\Api\TXSkeleton), Array) #3 {main} thrown in /www/myserver.com/blockcypher1/php-client/blockcypher/php-client/lib/BlockCypher/Api/TXSkeleton.php on line 148

But, I have provided unencrypted Hex private key of my address. Also tried with WIF. None is working!
This issue is still unresolved. Undecided