Last active
February 21, 2022 16:29
-
-
Save zouppen/dcf8601ca06e0dadd65180db129ac243 to your computer and use it in GitHub Desktop.
Write all addresses in Electrum wallet containing 0.1 BTC to file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Write all addresses containing 0.1 BTC to file | |
with open('/tmp/addresses.txt', 'w') as f: | |
f.write("\n".join([addr for addr in listaddresses() if wallet.get_addr_balance(addr)[0] == 10000000])) | |
# List all coins having balance of 0.1, with label starting with letter L containing transactions between blocks 395000 and 400350, inclusive. | |
[addr for addr in listaddresses() if wallet.get_addr_balance(addr)[0] == 10000000 and wallet.get_label(addr)[0] == 'L' and any([tx[1] >= 395000 and tx[1] <= 400350 for tx in wallet.get_address_history(addr)])] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment