Spaces:
Build error
Build error
| # 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) | |