shaheerawan3 commited on
Commit
344f973
·
verified ·
1 Parent(s): 6ad4402

Create crypto_integration.py

Browse files
Files changed (1) hide show
  1. crypto_integration.py +14 -0
crypto_integration.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # New crypto_integration.py
2
+ class CryptoWalletManager:
3
+ def __init__(self):
4
+ self.w3 = Web3(Web3.HTTPProvider('https://rpc.sepolia.org'))
5
+
6
+ def create_wallet(self):
7
+ account = self.w3.eth.account.create()
8
+ return {
9
+ 'address': account.address,
10
+ 'private_key': account.privateKey.hex()
11
+ }
12
+
13
+ def check_balance(self, address):
14
+ return self.w3.eth.get_balance(address)