Thanks to visit codestin.com
Credit goes to github.com

Skip to content
MMDRZA edited this page Jun 18, 2023 · 2 revisions

Blockthon

Blockthon Python Package for Generate and Converting Wallet Private Key and Mnemonic for Address Bitcoin

# on windows
pip install Blockthon

# on Linux
pip3 install Blockthon

on unix(debian base) if have problem curve or another library error's first need install this library's:

sudo apt-get update&&sudo apt-get upgrade -y
sudo apt-get install -y autoconf automake build-essential libffi-dev libtool pkg-config python3-dev
# after installing run cammand 
pip3 install blockthon

Generated Random Private Key Hex (without repeat):

from Blockthon.Wallet import PrivateKey

privatekey = PrivateKey()

Generated Mnemonic (Word's) (without repeat):

from Blockthon.Wallet import getMnemonic
# generated random mnemonic with 12 word
mnemonicWords = getMnemonic(12)

Generated Bytes Random (without repeat):

from Blockthon.Wallet import getBytes

bytes_seed = getBytes()

Generated Binary Random (without repeat):

from Blockthon.Wallet import getBin

binary_string = getBin(size=256)

Generated Compress Address from Private Key (hex):

from Blockthon.Wallet import PrivateKey_To_Address, PrivateKey

compress_address = PrivateKey_To_Address(PrivateKey(), compress=True)

Generated UnCompress Address from Private Key (hex):

from Blockthon.Wallet import PrivateKey_To_Address, PrivateKey

uncompress_address = PrivateKey_To_Address(PrivateKey(), compress=False)

convert private key to All Bitcoin Type address : Example Link

generated and convert private key hex to bitcoin address type: p2pkh / p2sh / p2wsh / p2wpkh / p2wpkh in p2sh / p2wsh in p2sh

convert private key to tron address : Example Link

generated and convert private key hex to Tron (TRX) address

convert private key to Bitcoin Gold address : Example Link

generated and convert private key hex to bitcoin gold address

convert private key to dash address : Example Link

generated and convert private key hex to dash address

convert private key to dogecoin address : Example Link

generated and convert private key hex to Dogecoin address

convert private key to digibyte address : Example Link

generated and convert private key hex to DigiByte address

convert private key to litecoin address : Example Link

generated and convert private key hex to Litecoin address

convert private key to ravencoin address : Example Link

generated and convert private key hex to Ravencoin address

convert private key to Qtum address : Example Link

generated and convert private key hex to Qtum address

convert private key to zCash address : Example Link

generated and convert private key hex to zcash (zec) address


asciicast

Example Blockthon:


More Detail's : documation


Programmer & Owner : @Pymmdrza | official Website


đź’˛Donate:

Bitcoin (BTC): bc1qu8dccq3yetd93m4nge0yay53lwgwvxngj8a80s

Ethereum & USDT (ERC20): 0x3628c7978C69278fA19A88a5B16718F47f5BEfe8

USDT & TRON (TRC20): TFWg8KV8DUP8Ubb4cmS1oubsF2X6i8gnBU

Litecoin (LTC): ltc1qx4mznsl228u863u6723avge7xv0xsk3vt0vgxa