I'm currently doing RPC calls to bitcoin-cli within python to get raw block data:
bitcoin-cli getblock BLOCKHASH False
I've already written a function that cuts off the block header and splits the transaction block into individual transactions, resulting in the same result as:
bitcoin-cli getrawblock TXID
I'm now trying to convert this data into the same result as
bitcoin-cli getrawblock TXID 1
without doing another RPC call to bitcoind. Would prefer to use pre-existing modules if possible.
Python packages would be appreciated.