bitcoin-php icon indicating copy to clipboard operation
bitcoin-php copied to clipboard

How use bitcoin-php with blockcypher ?

Open noistudio opened this issue 6 years ago • 4 comments

How use bitcoin-php last version with that lib https://github.com/blockcypher/php-client ?

noistudio avatar May 04 '19 17:05 noistudio

you don't - it uses an ancient version of the library that doesn't work any more :( (because of a badly written composer.json file) the only way to fix this is pester blockcypher to update their PHP client.

afk11 avatar May 05 '19 01:05 afk11

do you plan to use the blockcypher wallet or anything? if you just want the api, maybe fork their repo and delete everything but the api methods you need. or, just delete everything that includes/uses a bitwasp class..

afk11 avatar May 05 '19 01:05 afk11

My problem is solved , i fork https://github.com/blockcypher/php-client and chanse composer.json, after that all success install. But next problem ,how i can get params network for blockcypher testnet ? https://www.blockcypher.com/dev/bitcoin/#testing

noistudio avatar May 05 '19 08:05 noistudio

Check the Bitcoin or BitcoinTestnet network implementation. You have to change the address prefixes so it matches Block Cyphers. Generate an address of a known type on blockcypher, then decode the base58, and you learn the prefix you use in your configuration.

afk11 avatar Mar 09 '20 15:03 afk11