Skip to content
Python library to handle conversion between TxRef(bech32) <-> TxID
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
connectors.py
examples.py
segwit_addr.py
tests.py
txidbech32.py

README.md

txref-conversion-python

Python library to handle conversion between TxRef <-> TxID using the Blockcypher API. Tested in Python3

Transaction References, TxRefs, are encoded in Bech32. To learn more about it, see this BIP

Tests

  • Run python3 tests.py

Usage:

  • Add txidbech32.py to your imports: import txidbech32

  • Use txidbech32.txRefDecode( "yourTxRefHere" ) to retrieve a TxId from a bech32 encoded TxRef.

  • Use txidbech32.txidToBech32( "yourTxIDHere" , "mainnet | testnet" )

See examples.py and tests.py for detailed usage examples.

You can’t perform that action at this time.