Spaces:
Runtime error
Runtime error
Commit ·
a2e6beb
1
Parent(s): 5a55edb
Upload 2 files
Browse files- app.py +9 -0
- requirements.txt +4 -0
app.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# test_index.py
|
| 2 |
+
from eth_account import Account
|
| 3 |
+
|
| 4 |
+
Account.enable_unaudited_hdwallet_features()
|
| 5 |
+
phrase = "lesson cushion crane affair federal decline limb spend reunion chief cart zebra"
|
| 6 |
+
|
| 7 |
+
for idx in range(10):
|
| 8 |
+
acct = Account.from_mnemonic(phrase, account_path=f"m/44'/60'/0'/0/{idx}")
|
| 9 |
+
print(f"Index {idx}: {acct.address}")
|
requirements.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
eth_account
|
| 2 |
+
coincurve
|
| 3 |
+
mnemonic
|
| 4 |
+
bip39
|