Thanks for that.
Documentation, instead of reading the code, would be useful.
You'll need to take that up with the devs...
Also the error reporting from the console is, how can I put it politely, sub-optimal.
"Traceback (most recent call last):" tells me absolutely nothing useful when (not if) I make a mistake.
The console is more or less a cut down Python console. So what you see is basically just a Python interpretor error... Unfortunately, these aren't very helpful a lot of the time
For my use I
think I need this:
listaddresses(True,False,False,False,True)
Because I don't want to re-use addrresses ... but it returns 14407 rows the same as listaddresses(True)
Thankfully, I only have 23 rows to count... But using that command I get 22 returned... It is definitely leaving out the one address which received then spent all funds.
However there are 2 other addresses which have received, but are still included when unused=True...
So perhaps self.wallet.is_used() doesn't mean what I guess it does.
I'd have to agree to a certain extent... I'm not 100% sure as I haven't gone digging into the code yet. Perhaps ask the devs direct on the Electrum GitHub??
https://github.com/spesmilo/electrum/issuesBased on what HCP posted,
Can't you just use
listaddresses(true,false,false,false,true,false)
which will get all of the receiving addresses that aren't frozen or with labells or bitcoin in them and have not been used...
He said it didn't work... I've tested it and it "sort of" works... But perhaps not as one might imagine... So I think the definition of "unused" is slightly different to what the OP is expecting.
Also, note that you need to use
True and
False... Capitalisation is important.