bitcoin-php
bitcoin-php copied to clipboard
How use bitcoin-php with blockcypher ?
How use bitcoin-php last version with that lib https://github.com/blockcypher/php-client ?
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.
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..
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
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.