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
or for download manual:
git clone https://github.com/Blockthon/Blockthon
cd Blockthon
make
Generate Private Key (Hex) [Random]:
generated private key hex random with Blockthon in Python very fast for any os:
Generated Private Key:
from Blockthon.Wallet import PrivateKey
privatekey = PrivateKey()
Convert Private Key (HEX) To Compress & Un Compress Address:
for generated compressed and uncompress address bitcoin wallet use this example:
from Blockthon.Wallet import PrivateKey, PrivateKey_To_CompressAddr, PrivateKey_To_UnCompressAddr
# Generate Private Key
privatekey = PrivateKey()
# Convert Private key Hex To Compress Address Bitcoin
compressAddress = PrivateKey_To_CompressAddr(privatekey)
uncompressAddress = PrivateKey_To_UnCompressAddr(privatekey)
another example with new Format for all Bitcoin address Type in Blockthon:
- Data Entered
privatekey [hex]withstringtype - Data Entered
formatwithstringtype:compress,uncompress,P2PKH,P2SH,P2WSH,P2WPKH,P2WPKHinP2SH,P2WSHinP2SH.
Here Convert example for privatekey hex with return P2PKH address:
PrivateKey_To_Address(privatekey, Type='P2PKH')
now , another example for convert private key hex to compress address and uncompress address:
from Blockthon.Wallet import PrivateKey
from Blockthon.Bitcoin import PrivateKey_To_Address
privatekey = PrivateKey()
compressAddress = PrivateKey_To_Address(privatekey, Type='compress')
uncompressAddress = PrivateKey_To_Address(privatekey, Type='uncompress')
Check Value Balance From Address Bitcoin Wallet:
for checking balance per address bitcoin wallet with any type format can use example :
from Blockthon.Bitcoin import Balance_BTC
address = "bc1qu8dccq3yetd93m4nge0yay53lwgwvxngj8a80s"
balance = Balance_BTC(address)
# return value balance to string can / 100000000
Generate and Convert Private Key HEX To Ethereum Address:
example: generate privatekey hex and convert to ethereum address:
from Blockthon.Wallet import PrivateKey_To_ETH
import os
privatekey = os.urandom(32).hex()
addressEthereum = PrivateKey_To_ETH(privatekey)
check value balance Ethereum from address:
from Blockhton.Ethereum import Balance_ETH
address = "0x3628c7978C69278fA19A88a5B16718F47f5BEfe8"
balance = Balance_ETH(address)
Metadata
Release files for Blockthon 2.3.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Blockthon-2.3.6.tar.gz | 16.0 kB | Without provenance | Details for Blockthon-2.3.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Blockthon-2.3.6-py3-none-any.whl | Python 3 | none | any | Details for Blockthon-2.3.6-py3-none-any.whl |
Total release size: 35.9 kB
Release files / Blockthon-2.3.6.tar.gz
| Download URL | Blockthon-2.3.6.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a67c19dea4bbf5c65b607558a99e808717ffdd30112b4de9f81d2f86df972bb
|
|
BLAKE2b-256 checksum How to use checksums |
2f6789b541b357f1b132a6f8e7b21ebd6b3cc308697510a2580ea95839821e55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.3
|
Release files / Blockthon-2.3.6-py3-none-any.whl
| Download URL | Blockthon-2.3.6-py3-none-any.whl |
|---|---|
| Size | 19.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6da23d658bc2e97334c535f6c1bbc84731a1fe872fc05cf7235ceb8d165d5a3e
|
|
BLAKE2b-256 checksum How to use checksums |
9c5dcc7ee73b01f91a119a2de4b8f6f003c34c89c67a8a82fc901e8cbbd1ab56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.3
|
Security for Blockthon 2.3.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.