You are not logged in.

#1 2020-04-21 20:48:08

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Electrum jq: error (at <stdin>:76): Cannot index string with number

I'm trying to sweep private keys in electrum via cli. Following this electrum docs, I issue this command to extract a simple list of the keys:

electrum listaddresses --funded | electrum getprivatekeys - | jq 'map(.[0])'

After entering password I get flagged this error:

jq: error (at <stdin>:76): Cannot index string with number

I'm not familiar with jq and I've searched the net and read the jq docs a bit but I couldn't find a satisfactory answer. Is the given electrum command faulty perhaps? Or maybe the command is for an older version of jq?
I'm running on jq version 1.6.

Has anybody done this that worked?

Offline

#2 2020-04-21 21:23:15

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,392

Re: Electrum jq: error (at <stdin>:76): Cannot index string with number

Does the command work without the jq pipe ?

electrum listaddresses --funded | electrum getprivatekeys -

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2020-04-21 21:52:03

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: Electrum jq: error (at <stdin>:76): Cannot index string with number

Yes it does so electrum works.

Offline

Board footer

Powered by FluxBB