vbuterin / pybitcointools

SImple, common-sense Bitcoin-themed Python ECC library
1.28k stars 856 forks source link

Extra support for python 3 and blockcypher API #190

Open primal100 opened 6 years ago

primal100 commented 6 years ago

I wanted to be able to do the procedure in the README in the testnet in Python 3. This required a large rewrite of the bci.py module. Here is a summary of all changes:

1)Fixed various issues with Python 3 without compromising Python 2 support 2)Removed closed down block explorers blockr and hello block 3)Added blockcypher block explorer api for unspent, fetchtx, pushtx, last block height and block info, and made it to the default (due to testnet support) 4) Additional test cases for interaction with both blockchain.info and blockcypher api 5) Additional test case for making a transaction and pushing it to testnet via the blockcypher api 6) Changed procedure in README to use unspent instead of history to get the inputs for the transaction, as this is more logical, and unspents returned from the explorer APIs are already formatted to be used as inputs.