Skip to content

Python library to handle conversion between TxRef(bech32) <-> TxID

License

Notifications You must be signed in to change notification settings

WebOfTrustInfo/txref-conversion-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Python library to handle conversion between TxRef(bech32) <-> TxID

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages