Skip to content

Ethereum Wallet

MMDRZA edited this page Feb 24, 2024 · 1 revision

Ethereum

generated Private key hex format and convert to ethereum address wallet in python with libit package : from libit import Ethereum

from libit import Ethereum
import os
# // Generate random private key HEX
key = os.urandom(32).hex()
# // Initialize Ethereum Class
eth = Ethereum(private_key=key)
# // Convert Private Key HEX to Ethereum Address
ethereum_address = eth.get_address()
# // Print Ethereum Address
print(ethereum_address)
# // Decimal
dec = eth.get_decimal()
print(dec)
# // Seed
seed = eth.get_seed()
print(seed)
Clone this wiki locally