Bitcoin Forum
October 21, 2025, 12:54:03 PM *
News: Pumpkin carving contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to export all 1000 generated BTC addresses from Electrum?  (Read 246 times)
jedlee (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 5


View Profile
October 10, 2025, 10:10:00 AM
 #1

Hi everyone,

I manually generated about 1000 BTC receiving addresses in Electrum (version 4.6.1, Windows 10).

Now I’d like to export all of these addresses (just the public addresses, no private keys) into a text or CSV file — so I can import them into another system (Boxcoin).

However, I can’t copy multiple addresses directly from the “Addresses” tab — right-click and Ctrl+C don’t seem to work for batch export.

Could someone please tell me:

What’s the correct way to export all receiving addresses from Electrum?

Is there any safe method to export only the receiving addresses (without change addresses)?

If possible, could you share the console command or menu path to do it?

Thanks in advance for your help!
Mia Chloe
Legendary
*
Offline Offline

Activity: 868
Merit: 1453


Contact me for your designs...


View Profile
October 10, 2025, 10:22:57 AM
Last edit: October 10, 2025, 10:52:09 AM by Mia Chloe
 #2

~snip
I can remember seeing your post a couple of hours ago well, if you are referring to your receiving addresses, there are 2 ways you can do that one is a CSV file like you are asking and another is a just using your console to print out all the addresses then you can save them in a .txt file.

Go to your Electrum console and try this :
Code:
get_receiving_addresses():

quote me in this thread if Electrum was able to provide you with all the addresses. I'm not very sure but they should be separated with commas ,

hosemary
Legendary
*
Offline Offline

Activity: 2926
Merit: 6542



View Profile
October 10, 2025, 10:41:18 AM
Merited by Mia Chloe (1)
 #3

Go to console tab and use listaddresses() command.
After that, electrum will show you all your addresses and you will be able to copy-paste them easily.

You can also see all your addresses in your wallet file, if it's not encrypted.


Go to your Electrum console and try this :
Code:
for a in wallet.get_receiving_addresses():
    print(a)
I just tried this command and it didn't work.

.
 betpanda.io 
 
ANONYMOUS & INSTANT
.......ONLINE CASINO.......
▄███████████████████████▄
█████████████████████████
█████████████████████████
████████▀▀▀▀▀▀███████████
████▀▀▀█░▀▀░░░░░░▄███████
████░▄▄█▄▄▀█▄░░░█▄░▄█████
████▀██▀░▄█▀░░░█▀░░██████
██████░░▄▀░░░░▐░░░▐█▄████
██████▄▄█░▀▀░░░█▄▄▄██████
█████████████████████████
█████████████████████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀░░░▀██████████
█████████░░░░░░░█████████
███████░░░░░░░░░███████
████████░░░░░░░░░████████
█████████▄░░░░░▄█████████
███████▀▀▀█▄▄▄█▀▀▀███████
██████░░░░▄░▄░▄░░░░██████
██████░░░░█▀█▀█░░░░██████
██████░░░░░░░░░░░░░██████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀▀▀▀▀▀█████████
███████▀▀░░░░░░░░░███████
██████░░░░░░░░░░░░▀█████
██████░░░░░░░░░░░░░░▀████
██████▄░░░░░░▄▄░░░░░░████
████▀▀▀▀▀░░░█░░█░░░░░████
████░▀░▀░░░░░▀▀░░░░░█████
████░▀░▀▄░░░░░░▄▄▄▄██████
█████░▀░█████████████████
█████████████████████████
▀███████████████████████▀
.
SLOT GAMES
....SPORTS....
LIVE CASINO
▄░░▄█▄░░▄
▀█▀░▄▀▄░▀█▀
▄▄▄▄▄▄▄▄▄▄▄   
█████████████
█░░░░░░░░░░░█
█████████████

▄▀▄██▀▄▄▄▄▄███▄▀▄
▄▀▄█████▄██▄▀▄
▄▀▄▐▐▌▐▐▌▄▀▄
▄▀▄█▀██▀█▄▀▄
▄▀▄█████▀▄████▄▀▄
▀▄▀▄▀█████▀▄▀▄▀
▀▀▀▄█▀█▄▀▄▀▀

Regional Sponsor of the
Argentina National Team

AVATAR
Mia Chloe
Legendary
*
Offline Offline

Activity: 868
Merit: 1453


Contact me for your designs...


View Profile
October 10, 2025, 10:47:42 AM
 #4

Go to console tab and use listaddresses() command.
After that, electrum will show you all your addresses and you will be able to copy-paste them easily.
I'm not on my computer though else I would have tested first before posting. Still I just tried  phyton directly. Anyways if listaddresses()  works then there should be a way to directly save it as a .txt file directly after printing without using copy and paste. Is there a code on that too? I'd like you to share if you have one for reference purpose.

Cookdata
Legendary
*
Online Online

Activity: 1470
Merit: 1110


Not Your Keys, Not Your Bitcoin


View Profile
October 10, 2025, 10:48:17 AM
Merited by Pmalek (3), Abdussamad (2), hosemary (1)
 #5

Go to console tab and use listaddresses() command.
After that, electrum will show you all your addresses and you will be able to copy-paste them easily.

listaddresses() gives list of all addresses(both receiving and change) and OP said he want just the receiving address without a change.

I tried wallet.get_receiving_addresses() and it return dump of all receiving addresses.

OP you can try that on your console and then copy and paste it on your notepad and save as csv or txt.



███████▄▄███▄███▄
███▄▄████████▌██
▄█████████████▐██▌
██▄███████████▌█▌
███████▀██████▐▌█
██████████████▌▌▐
████████▄███████▐▐
█████████████████
███████████████▄██▄
██████████████▀▀▀
█████▀███▀▀▀

▄▄▄██████▄▄▄███████▄▄▄
███████████████████████████
███▌█████▀███▌█████▀▀███████████▄▄▄▄▄▄▄▄
███▌█████▄███▌█████▄███▐███████████████████▄
▐████████████▀███████▄██████████▀▀▀▀▀▀▀▀████▀
▐████████████▄██▄███████████▌█████████▄████▀
▐█████████▀█████████▌█████████████▄▄████▀
██████████▄███████████▐███▌██▄██████▀
██████████████▀███▐███▌██████████████████████
████▀██████▀▀█████████▌███▀▀▀▀███▀▀▀▀▀▀▀████▌
 
      P R E M I E R   B I T C O I N   C A S I N O   &   S P O R T S B O O K      

█▀▀









▀▀▀

▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

  98%  
RTP

 
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

▀▀█









▀▀▀

█▀▀









▀▀▀

▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

 HIGH 
ODDS

 
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

▀▀█









▀▀▀
 
..PLAY NOW..
promise444c5
Hero Member
*****
Offline Offline

Activity: 812
Merit: 599


All things are numbers


View Profile WWW
October 10, 2025, 12:09:17 PM
Last edit: October 10, 2025, 04:50:35 PM by promise444c5
 #6

i do have a workaround for you.. but not straight forward, once you get it, it becomes easy..
Since you said you are on windows then you will be using powershell Bash terminal for it. If you don’t have any, you can download one such asMSYS2.
Open your bash terminal and change your directory to your electrum intallation folder, if you don’t know which then go to your start menu, Navigate to your the electrum folder open it then right click on the application , select open file in location… that way you can easily copy the path

in your terminal paste and run..
Code:
 cd <the copied path> 
you might want to put it inside quote if it’s located in program File directly because it will trigger an error due to the folder name i.e cd '<the copied path without <> tag’
e.g
Code:
cd 'C:/Program Files (x86)/Electrum'

Next ,
list the addresses by grabbing the current synchronized wallet

to know the current synchronizes wallet , just run  ./your_current_electrum_version.exe list_wallets
e.g
Code:
 ./electrum-4.4.6.exe list_wallets
this should give you the path to the current wallet , which you can copy and also check if sync but if that doesn’t work …then go to your  electrum , navigate to Wallet>information , you would see ‘wallet name’—current wallet name & the ‘file created’ —shows your current version.

if the first command doesn’t work then you need to manually get the path of your electrum wallet app data..
it’s  usually inside the ~/appdata/roaming/electrum/* directory
so you can easily  access it as C:/users/<your name or what the setup chooses for you>/appdata/roaming/electrum/wallets/<wallet_name>

Now if you figure that out then you’re good to go by running command
 ./electrum-<current_version>.exe listaddresses --wallet <space> “ C:/users/<your name or what the setup chooses for you>/appdata/roaming/electrum/wallets/<wallet_name>”  >  “ C:/users/<your name or what the setup chooses for you>/desktop <or wherever you wish to save it, you can customize additional folder too>/<file name>. <whatever extension you wih to save it ,in your case that will be ‘csv’>”
 
e.g
Code:
./electrum-4.4.6.exe listaddresses --wallet “ C:/users/promise444c5/appdata/roaming/electrum/wallets/default_wallet”  >  “ C:/users/promise444c5/desktop/addresses.csv”

That should give you your file with the list of your addresses in the path  specified..

[edit]
modified the post since Powershell doesn’t seem to work..

 
█▄
R


▀▀██████▄▄
████████████████
▀█████▀▀▀█████
████████▌███▐████
▄█████▄▄▄█████
████████████████
▄▄██████▀▀
LLBIT▀█ 
  TH#1 SOLANA CASINO  
████████████▄
▀▀██████▀▀███
██▄▄▀▀▄▄████
████████████
██████████
███▀████████
▄▄█████████
████████████
████████████
████████████
████████████
█████████████
████████████▀
████████████▄
▀▀▀▀▀▀▀██████
████████████
███████████
██▄█████████
████▄███████
████████████
█░▀▀████████
▀▀██████████
█████▄█████
████▀▄▀████
▄▄▄▄▄▄▄██████
████████████▀
........5,000+........
GAMES
 
......INSTANT......
WITHDRAWALS
..........HUGE..........
REWARDS
 
............VIP............
PROGRAM
 .
   PLAY NOW    
jedlee (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 5


View Profile
October 10, 2025, 02:04:17 PM
Merited by Pmalek (3)
 #7

I’m trying to export all my receiving addresses from Electrum (offline wallet).
When I use the command
listaddresses()
it shows the addresses in a list with quotes and commas (Python format).

However, I want to output them as a single line, with only commas between each address, like this:
bc1qaaa...,bc1qbbb...,bc1qccc...
I tried the following command in the console:
print(','.join(wallet.get_receiving_addresses()))

but nothing appeared in the output area.

Could anyone please tell me the correct command or method to print all addresses in this “comma-separated” format?

Thank you very much!
promise444c5
Hero Member
*****
Offline Offline

Activity: 812
Merit: 599


All things are numbers


View Profile WWW
October 10, 2025, 03:35:47 PM
 #8

~
it should work, did it throw any error?..
make sure you’re not misspelling any word

 
█▄
R


▀▀██████▄▄
████████████████
▀█████▀▀▀█████
████████▌███▐████
▄█████▄▄▄█████
████████████████
▄▄██████▀▀
LLBIT▀█ 
  TH#1 SOLANA CASINO  
████████████▄
▀▀██████▀▀███
██▄▄▀▀▄▄████
████████████
██████████
███▀████████
▄▄█████████
████████████
████████████
████████████
████████████
█████████████
████████████▀
████████████▄
▀▀▀▀▀▀▀██████
████████████
███████████
██▄█████████
████▄███████
████████████
█░▀▀████████
▀▀██████████
█████▄█████
████▀▄▀████
▄▄▄▄▄▄▄██████
████████████▀
........5,000+........
GAMES
 
......INSTANT......
WITHDRAWALS
..........HUGE..........
REWARDS
 
............VIP............
PROGRAM
 .
   PLAY NOW    
mcdouglasx
Sr. Member
****
Offline Offline

Activity: 798
Merit: 435



View Profile WWW
October 10, 2025, 03:52:56 PM
Merited by Pmalek (3), hosemary (1)
 #9

I’m trying to export all my receiving addresses from Electrum (offline wallet).
When I use the command
listaddresses()
it shows the addresses in a list with quotes and commas (Python format).

However, I want to output them as a single line, with only commas between each address, like this:
bc1qaaa...,bc1qbbb...,bc1qccc...
I tried the following command in the console:
print(','.join(wallet.get_receiving_addresses()))

but nothing appeared in the output area.

Could anyone please tell me the correct command or method to print all addresses in this “comma-separated” format?

Thank you very much!


For what you want to do, you must open Electrum, go to the console and execute the following command:

Quote
','.join(wallet.get_receiving_addresses())

Please put it in the console just as I gave it to you, since print() may not be available in some versions of electrum.

This will list all your receiving addresses, continuous and separated only by a comma. You can then open your notepad and paste the content there so you can save it in the file of your choice, whether it's txt or csv.



When I use the command
listaddresses()
it shows the addresses in a list with quotes and commas (Python format).

To clarify, this is not in Python format, it is given to you in JSON format.

betpanda.io.
▄███████████████████████▄
█████████████████████████
█████████████████████████
████████▀▀▀▀▀▀███████████
████▀▀▀█░▀▀░░░░░░▄███████
████░▄▄█▄▄▀█▄░░░█▄░▄█████
████▀██▀░▄█▀░░░█▀░░██████
██████░░▄▀░░░░▐░░░▐█▄████
██████▄▄█░▀▀░░░█▄▄▄██████
█████████████████████████
█████████████████████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀░░░▀██████████
█████████░░░░░░░█████████
████████░░░░░░░░░████████
████████░░░░░░░░░████████
█████████▄░░░░░▄█████████
███████▀▀▀█▄▄▄█▀▀▀███████
██████░░░░▄░▄░▄░░░░██████
██████░░░░█▀█▀█░░░░██████
██████░░░░░░░░░░░░░██████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀▀▀▀▀▀█████████
███████▀▀░░░░░░░░░███████
██████▀░░░░░░░░░░░░▀█████
██████░░░░░░░░░░░░░░▀████
██████▄░░░░░░▄▄░░░░░░████
████▀▀▀▀▀░░░█░░█░░░░░████
████░▀░▀░░░░░▀▀░░░░░█████
████░▀░▀▄░░░░░░▄▄▄▄██████
█████░▀░█████████████████
█████████████████████████
▀███████████████████████▀
.
SLOT GAMES
SPORTS
LIVE CASINO
▄░░▄█▄░░▄
▀█▀░▄▀▄░▀█▀
▄▄▄▄▄▄▄▄▄▄▄   
█████████████
█░░░░░░░░░░░█
█████████████

▄▀▄██▀▄▄▄▄▄███▄▀▄
▄▀▄█████▄██▄▀▄
▄▀▄▐▐▌▐▐▌▄▀▄
▄▀▄█▀██▀█▄▀▄
▄▀▄█████▀▄████▄▀▄
▀▄▀▄▀█████▀▄▀▄▀
▀▀▀▄█▀█▄▀▄▀▀

Regional Sponsor of the
Argentina National Team
nc50lc
Legendary
*
Offline Offline

Activity: 2940
Merit: 7791


Self-proclaimed Genius


View Profile
October 11, 2025, 04:57:06 AM
 #10

~
it should work, did it throw any error?..
make sure you’re not misspelling any word
Since it's Windows, if not running from source; it should be the "debug" executable of the installer version and the daemon must be running in the background or specify to use that command offline.
So ideally, the command should be:
Code:
./electrum-4.6.2-debug.exe listaddresses --wallet "WALLET_PATH_OR_NAME"  >  "OUTPUT_PATH\Output_name.txt" --offline
However, the output addresses are separated by line breaks same as the result of plain listaddresses() command.
Using Electrum's Console tab and typing: ",".join(listaddresses()) should print the desired output but that includes the change addresses.
So the command above should be the best solution.

Pmalek
Legendary
*
Offline Offline

Activity: 3290
Merit: 8679



View Profile
October 11, 2025, 07:17:55 AM
 #11

I tried the following command in the console:
print(','.join(wallet.get_receiving_addresses()))

but nothing appeared in the output area.
This command works. However, the output is just one big string of data. The addresses are separated by commas but there is no space between them. I don't know if it's supposed to be like that. It's the same thing with the command that mcdouglasx suggested. If you need a space between each address, you will have to manually edit the outputs.


This will list all your receiving addresses, continuous and separated only by a comma. You can then open your notepad and paste the content there so you can save it in the file of your choice, whether it's txt or csv.
Is there also a command to get one address per line with no commas or quotation marks between them?

Like this:
bc1qaaa
bc1qbbb
bc1qccc
etc.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
hosemary
Legendary
*
Offline Offline

Activity: 2926
Merit: 6542



View Profile
October 11, 2025, 08:00:17 AM
Last edit: October 11, 2025, 08:10:20 AM by hosemary
Merited by Pmalek (3), mcdouglasx (2), Cookdata (1)
 #12

Is there also a command to get one address per line with no commas or quotation marks between them?
All you need to do is to replace the ',' with '\n' in the python code. \n represents line break in python.
So the command should be as follows, if you want the addresses to be printed in separate lines.

Code:
print('\n'.join(wallet.get_receiving_addresses()))

.
 betpanda.io 
 
ANONYMOUS & INSTANT
.......ONLINE CASINO.......
▄███████████████████████▄
█████████████████████████
█████████████████████████
████████▀▀▀▀▀▀███████████
████▀▀▀█░▀▀░░░░░░▄███████
████░▄▄█▄▄▀█▄░░░█▄░▄█████
████▀██▀░▄█▀░░░█▀░░██████
██████░░▄▀░░░░▐░░░▐█▄████
██████▄▄█░▀▀░░░█▄▄▄██████
█████████████████████████
█████████████████████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀░░░▀██████████
█████████░░░░░░░█████████
███████░░░░░░░░░███████
████████░░░░░░░░░████████
█████████▄░░░░░▄█████████
███████▀▀▀█▄▄▄█▀▀▀███████
██████░░░░▄░▄░▄░░░░██████
██████░░░░█▀█▀█░░░░██████
██████░░░░░░░░░░░░░██████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀▀▀▀▀▀█████████
███████▀▀░░░░░░░░░███████
██████░░░░░░░░░░░░▀█████
██████░░░░░░░░░░░░░░▀████
██████▄░░░░░░▄▄░░░░░░████
████▀▀▀▀▀░░░█░░█░░░░░████
████░▀░▀░░░░░▀▀░░░░░█████
████░▀░▀▄░░░░░░▄▄▄▄██████
█████░▀░█████████████████
█████████████████████████
▀███████████████████████▀
.
SLOT GAMES
....SPORTS....
LIVE CASINO
▄░░▄█▄░░▄
▀█▀░▄▀▄░▀█▀
▄▄▄▄▄▄▄▄▄▄▄   
█████████████
█░░░░░░░░░░░█
█████████████

▄▀▄██▀▄▄▄▄▄███▄▀▄
▄▀▄█████▄██▄▀▄
▄▀▄▐▐▌▐▐▌▄▀▄
▄▀▄█▀██▀█▄▀▄
▄▀▄█████▀▄████▄▀▄
▀▄▀▄▀█████▀▄▀▄▀
▀▀▀▄█▀█▄▀▄▀▀

Regional Sponsor of the
Argentina National Team

AVATAR
mcdouglasx
Sr. Member
****
Offline Offline

Activity: 798
Merit: 435



View Profile WWW
October 11, 2025, 01:21:21 PM
Merited by Pmalek (3), nc50lc (1)
 #13

Is there also a command to get one address per line with no commas or quotation marks between them?

Since Electrum is based on Python, the commands used are relative to Python. To separate lines in Python, use\n as @hosemary suggests. However, you can separate lines however you like by simply changing what's inside the quotes in the join.

For example, to add a space after a comma, you add it like this:

Code:
', '.join(wallet.get_receiving_addresses())

Or you could do something like this:

Code:
exec("for a in wallet.get_receiving_addresses(): print('btc: ' + a)")

btc: 1ewuiuwieu...
btc: 1dfjfkfjdkfjk...
btc: 1dffdsasjdkj...

As long as you follow Python's rules.

betpanda.io.
▄███████████████████████▄
█████████████████████████
█████████████████████████
████████▀▀▀▀▀▀███████████
████▀▀▀█░▀▀░░░░░░▄███████
████░▄▄█▄▄▀█▄░░░█▄░▄█████
████▀██▀░▄█▀░░░█▀░░██████
██████░░▄▀░░░░▐░░░▐█▄████
██████▄▄█░▀▀░░░█▄▄▄██████
█████████████████████████
█████████████████████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀░░░▀██████████
█████████░░░░░░░█████████
████████░░░░░░░░░████████
████████░░░░░░░░░████████
█████████▄░░░░░▄█████████
███████▀▀▀█▄▄▄█▀▀▀███████
██████░░░░▄░▄░▄░░░░██████
██████░░░░█▀█▀█░░░░██████
██████░░░░░░░░░░░░░██████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀▀▀▀▀▀█████████
███████▀▀░░░░░░░░░███████
██████▀░░░░░░░░░░░░▀█████
██████░░░░░░░░░░░░░░▀████
██████▄░░░░░░▄▄░░░░░░████
████▀▀▀▀▀░░░█░░█░░░░░████
████░▀░▀░░░░░▀▀░░░░░█████
████░▀░▀▄░░░░░░▄▄▄▄██████
█████░▀░█████████████████
█████████████████████████
▀███████████████████████▀
.
SLOT GAMES
SPORTS
LIVE CASINO
▄░░▄█▄░░▄
▀█▀░▄▀▄░▀█▀
▄▄▄▄▄▄▄▄▄▄▄   
█████████████
█░░░░░░░░░░░█
█████████████

▄▀▄██▀▄▄▄▄▄███▄▀▄
▄▀▄█████▄██▄▀▄
▄▀▄▐▐▌▐▐▌▄▀▄
▄▀▄█▀██▀█▄▀▄
▄▀▄█████▀▄████▄▀▄
▀▄▀▄▀█████▀▄▀▄▀
▀▀▀▄█▀█▄▀▄▀▀

Regional Sponsor of the
Argentina National Team
Forsyth Jones
Legendary
*
Offline Offline

Activity: 1694
Merit: 1689


I love Bitcoin!


View Profile WWW
October 11, 2025, 10:15:03 PM
Merited by Pmalek (3)
 #14

I found it interesting interesting to include the index number for each address:

Code:
print('\n'.join([f"Index: {i}, addr: {addr}" for i, addr in enumerate(wallet.get_receiving_addresses())]))

The output will include the index (i): M/0H/0/I and the addresses. This is better for organization and knowing which address is which:

Code:
Index: 0, addr: bc1qd6aea43jkgv7edyg8u8x9wjlz6a8vznvz7uu6z
Index: 1, addr: bc1qmmpmn2l7cmuw072h7zvjuulf6kftwynuer209u
Index: 2, addr: bc1qnsj4flfmae5957v57mrerccv80nsg37z2x50dj
...

For change addresses, simply replace 'wallet.get_receiving_addresses' with wallet.get_change_addresses, as shown below:

Code:
print('\n'.join([f"Index: {i}, addr: {addr}" for i, addr in enumerate(wallet.get_change_addresses())]))

We should create a thread for Electrum console commands. There are many interesting commands like these.


promise444c5
Hero Member
*****
Offline Offline

Activity: 812
Merit: 599


All things are numbers


View Profile WWW
October 12, 2025, 01:26:57 AM
 #15

~
it should work, did it throw any error?..
make sure you’re not misspelling any word
Since it's Windows, if not running from source; it should be the "debug" executable of the installer version and the daemon must be running in the background or specify to use that command offline.
So ideally, the command should be:
Code:
./electrum-4.6.2-debug.exe listaddresses --wallet "WALLET_PATH_OR_NAME"  >  "OUTPUT_PATH\Output_name.txt" --offline
However, the output addresses are separated by line breaks same as the result of plain listaddresses() command.
Using Electrum's Console tab and typing: ",".join(listaddresses()) should print the desired output but that includes the change addresses.
So the command above should be the best solution.
Thanks for fixing that.. it now works on PS with that command…
..to remove the line break i used  the join operator
Code:
 -join ''
since it’s being dumped into the file  as an array in the first place and already separated by a “ , “ .
Then i noticed i need to get rid of the array brackets too Tongue , got it removed with
Code:
 -replace '[\[\]]','' 

To get only the receiving address,  i added  “ --receiving”..

so the command looks like this
Code:
((./electrum-4.4.6-debug.exe listaddresses --receiving --wallet "WALLET_PATH_OR_NAME") -join '') -replace '[\[\]]','' > "OUTPUT_PATH\Output_name.txt"



It seems OP is more interested in manual copy and paste  from Electrum’s console  though(1000 addresses  seem alot).. but whichever works for him anyways

 
█▄
R


▀▀██████▄▄
████████████████
▀█████▀▀▀█████
████████▌███▐████
▄█████▄▄▄█████
████████████████
▄▄██████▀▀
LLBIT▀█ 
  TH#1 SOLANA CASINO  
████████████▄
▀▀██████▀▀███
██▄▄▀▀▄▄████
████████████
██████████
███▀████████
▄▄█████████
████████████
████████████
████████████
████████████
█████████████
████████████▀
████████████▄
▀▀▀▀▀▀▀██████
████████████
███████████
██▄█████████
████▄███████
████████████
█░▀▀████████
▀▀██████████
█████▄█████
████▀▄▀████
▄▄▄▄▄▄▄██████
████████████▀
........5,000+........
GAMES
 
......INSTANT......
WITHDRAWALS
..........HUGE..........
REWARDS
 
............VIP............
PROGRAM
 .
   PLAY NOW    
Pmalek
Legendary
*
Offline Offline

Activity: 3290
Merit: 8679



View Profile
October 12, 2025, 06:53:06 AM
 #16

We should create a thread for Electrum console commands. There are many interesting commands like these.
That's a great idea. I am sure there are many people who don't know what's possible to achieve with the right console commands and have very little or zero experience with Python in general. I use the Console tab seldom myself and have never needed it for any advanced actions, but I am curious about the things it can do. A good thread that explains this and goes from simple to more complex commands would be highly appreciated by many.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
mcdouglasx
Sr. Member
****
Offline Offline

Activity: 798
Merit: 435



View Profile WWW
October 12, 2025, 03:40:22 PM
Merited by Forsyth Jones (1)
 #17

We should create a thread for Electrum console commands. There are many interesting commands like these.

I thought the same, I thought it would be appropriate to make a thread about this, but it has to be done well since the Electrum console commands can vary depending on the version, and Electrum App is not the same as Electrum CLI, so I don't dare to make such a post for fear of it being imprecise.

But I encourage anyone with the necessary knowledge to make this contribution if they have time. It would be very useful in the forum since the commands are explicit on GitHub when it comes to the CLI but not when it comes to the internal Electrum console.

betpanda.io.
▄███████████████████████▄
█████████████████████████
█████████████████████████
████████▀▀▀▀▀▀███████████
████▀▀▀█░▀▀░░░░░░▄███████
████░▄▄█▄▄▀█▄░░░█▄░▄█████
████▀██▀░▄█▀░░░█▀░░██████
██████░░▄▀░░░░▐░░░▐█▄████
██████▄▄█░▀▀░░░█▄▄▄██████
█████████████████████████
█████████████████████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀░░░▀██████████
█████████░░░░░░░█████████
████████░░░░░░░░░████████
████████░░░░░░░░░████████
█████████▄░░░░░▄█████████
███████▀▀▀█▄▄▄█▀▀▀███████
██████░░░░▄░▄░▄░░░░██████
██████░░░░█▀█▀█░░░░██████
██████░░░░░░░░░░░░░██████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀▀▀▀▀▀█████████
███████▀▀░░░░░░░░░███████
██████▀░░░░░░░░░░░░▀█████
██████░░░░░░░░░░░░░░▀████
██████▄░░░░░░▄▄░░░░░░████
████▀▀▀▀▀░░░█░░█░░░░░████
████░▀░▀░░░░░▀▀░░░░░█████
████░▀░▀▄░░░░░░▄▄▄▄██████
█████░▀░█████████████████
█████████████████████████
▀███████████████████████▀
.
SLOT GAMES
SPORTS
LIVE CASINO
▄░░▄█▄░░▄
▀█▀░▄▀▄░▀█▀
▄▄▄▄▄▄▄▄▄▄▄   
█████████████
█░░░░░░░░░░░█
█████████████

▄▀▄██▀▄▄▄▄▄███▄▀▄
▄▀▄█████▄██▄▀▄
▄▀▄▐▐▌▐▐▌▄▀▄
▄▀▄█▀██▀█▄▀▄
▄▀▄█████▀▄████▄▀▄
▀▄▀▄▀█████▀▄▀▄▀
▀▀▀▄█▀█▄▀▄▀▀

Regional Sponsor of the
Argentina National Team
nc50lc
Legendary
*
Offline Offline

Activity: 2940
Merit: 7791


Self-proclaimed Genius


View Profile
October 13, 2025, 04:39:42 AM
 #18

We should create a thread for Electrum console commands. There are many interesting commands like these.
The thing is, most of those undocumented commands aren't actually exposed to the users and just one of the thousand functions that could also work in the console/command line.

For example, this thread's solution "wallet.get_receiving_addresses" is a just function in /electrum/wallet.py and not listed under /electrum/commands.py.
What I'm saying is, if it's not in the console's help() command or command line's --help/-h command, we could be listing thousands of possible commands which could be unsafe to the users.

So, a compilation of non-standard electrum commands with references that are already tested should be good enough because it can't be pulled from an official list.
But the one who'll maintain a thread for that should do some extensive research since it's mostly posted in issue topics all around the internet as workaround solutions.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!