As part of my Master in Digital Currencies & Blockchain from University of Nicosia, Cyprus; I have created this program to publish a message on Bitcoin blockchain.
This program is written in Python 2.7 and requires the Bitcoin Core node (testnet) running locally on your machine. When you run the program, you need to provide your favorite message/quote as the input. Once the message is provided, it will grab one spendable transaction (UTXO - Unspent Transaction Output), calculate the fee, create the raw transaction, sign it, and publish it on the blockchain.
- Install Bitcoin Core node (testnet)
- Install Python 2.7
- Install required Python modules
pip install ecdsa base58 hashlib python-bitcoinrpc python-jsonrpc
Enter your Bitcoin Core RPC User Name:<<<Username>>>
Enter your Bitcoin Core RPC Password:<<<Password>>>
Enter your favorite message or quote:<<<Quote>>>
Congratulations! You have just published a transaction to the Bitcoin blockchain.
Previoux TxnId: 330788c3dfc18808a04107d8c0c8f598d73eade8b1479e69b3db3ee3aa85aa98
New TxnId: 52e12ca20970a579bd62107054c45be33b5e21c31faa56de930df61bb043bf80
Big thanks to all the people who have taken the time to provide wonderful tutorials, videos, and answered the questions for newbees like me.
Understanding Binary, Hexadecimal, Decimal (Base-10), and more
Characters in a computer - ASCII Tutorial
Bits vs Bytes as Fast As Possible