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.
Type Name Latest commit message Commit time
Failed to load latest commit information.


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


  • Run python3


  • Add 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 and for detailed usage examples.

You can’t perform that action at this time.