Untitled
unknown
plain_text
18 days ago
823 B
2
Indexable
Never
from electrum import Wallet, storage, SimpleConfig, Network from electrum.util import json_encode import asyncio seed_phrases = [ "your seed phrase 1 here", "your seed phrase 2 here", # Add more seed phrases here ] async def check_wallet_balance(seed_phrase): config = SimpleConfig({"testnet": False}) # Set to True if you're using testnet storage_ = storage.WalletStorage(None) wallet = Wallet.from_seed(seed_phrase, config=config) wallet.start_network(config.network) await wallet.synchronize() balance = wallet.get_balance() return balance async def main(): for seed in seed_phrases: balance = await check_wallet_balance(seed) print(f"Seed: {seed} - Balance: {balance}") if __name__ == "__main__": asyncio.run(main())
Leave a Comment