Title: python-bitcoinlib getblock , how to decode the hex string to human readable Post by: kimitw on May 09, 2014, 08:42:33 AM Dear All,
I use the python-bitcoinlib getblock function r = self._call('getblock', block_hash, False) But i get the hex string format 020000003a42e1a730bd55a38c56d2f07a7094bb8d0e689............ how to decode the hex string to human readable for human readable format? Thanks Code: def getblock(self, block_hash): Title: Re: python-bitcoinlib getblock , how to decode the hex string to human readable Post by: kimitw on May 09, 2014, 09:11:39 AM Dear all,
sorry, i found how to do it. from return CBlock.deserialize(unhexlify(r)) |