I always get this error in Electrum's python console on both my Ubuntu and Windows machines. Here it is:
>>
dumpprivkeys(map(lambda x:x.get('address'), listunspent()))
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Temp\_MEI70962\gui\qt\main_window.py", line 1675, in <lambda>
return lambda *args: apply( f, (method, args, self.password_dialog ))
File "C:\Users\User\AppData\Local\Temp\_MEI70962\lib\commands.py", line 105, in _run
result = f(*args)
File "C:\Users\User\AppData\Local\Temp\_MEI70962\lib\commands.py", line 83, in func_wrapper
return func(*args, **kwargs)
TypeError: dumpprivkeys() takes exactly 1 argument (2 given)I am using dumpprivkeys() exactly as specified in the documentation at
https://electrum.readthedocs.io/en/latest/console.html.
Does anyone know what is going wrong here?Here is supporting info:
>> print(sys.version)
2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)]
The
problem is not the map() or listunspent() functions, it is dumpprivkeys():
>> dumpprivkeys(["17N9XSNwqzdYVug59LbPM5GfbPT5eJ24CB"])
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Temp\_MEI70962\gui\qt\main_window.py", line 1675, in <lambda>
return lambda *args: apply( f, (method, args, self.password_dialog ))
File "C:\Users\User\AppData\Local\Temp\_MEI70962\lib\commands.py", line 105, in _run
result = f(*args)
File "C:\Users\User\AppData\Local\Temp\_MEI70962\lib\commands.py", line 83, in func_wrapper
return func(*args, **kwargs)
TypeError: dumpprivkeys() takes exactly 1 argument (2 given)
>>
where:
>> listunspent()
[
{
"address": "17N9XSNwqzdYVug59LbPM5GfbPT5eJ24CB",
...redacted...
}
]