DigiHeir_DigitalLegacyManager / crypto_integration.py
shaheerawan3's picture
Create crypto_integration.py
344f973 verified
raw
history blame contribute delete
439 Bytes
# New crypto_integration.py
class CryptoWalletManager:
def __init__(self):
self.w3 = Web3(Web3.HTTPProvider('https://rpc.sepolia.org'))
def create_wallet(self):
account = self.w3.eth.account.create()
return {
'address': account.address,
'private_key': account.privateKey.hex()
}
def check_balance(self, address):
return self.w3.eth.get_balance(address)