Bitcoin Forum
November 09, 2024, 08:03:36 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Console commands  (Read 1836 times)
Stn (OP)
Full Member
***
Offline Offline

Activity: 227
Merit: 100


View Profile
October 08, 2013, 02:53:02 AM
 #1

I am trying to employ Electrum using shell console commands. In principle it works but for my big surprise I found missing "create new address" command.

Also "history" command output is far too minimalistic. In fact I could peek into the code and extend history output. But implementing create address failed as I'm not familiar with the internal architecture.

Would you brush up the set of console commands?
ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
October 08, 2013, 04:34:17 PM
 #2

I am trying to employ Electrum using shell console commands. In principle it works but for my big surprise I found missing "create new address" command.

Also "history" command output is far too minimalistic. In fact I could peek into the code and extend history output. But implementing create address failed as I'm not familiar with the internal architecture.

Would you brush up the set of console commands?

electrum does not have a "create new address" command.
it creates new addresses only when the existing are used.
this is a design choice: it ensures that the wallet can be restored deterministically from seed.

Electrum: the convenience of a web wallet, without the risks
Stn (OP)
Full Member
***
Offline Offline

Activity: 227
Merit: 100


View Profile
October 09, 2013, 02:51:05 AM
 #3

Does it mean there is no way to use Electrum as merchant? Or possibly any trick? When I looked into code I've seen CreateNewAddress method in the Wallet class.
adamas
Legendary
*
Offline Offline

Activity: 1014
Merit: 1003


VIS ET LIBERTAS


View Profile WWW
October 09, 2013, 10:07:02 AM
 #4

You can create bulk addresses with bitaddress or vanitygen and import them into electrum.

"Es ist kein Zeichen geistiger Gesundheit, gut angepasst an eine kranke Gesellschaft zu sein."
ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
October 09, 2013, 01:32:23 PM
 #5

Does it mean there is no way to use Electrum as merchant? Or possibly any trick? When I looked into code I've seen CreateNewAddress method in the Wallet class.

there is a "merchant script" for that.
but I suggest you wait for the 1.9 release because the script in 1.8.1 is broken.

you can also raise your "gap limit" parameter, but be sure to understand how to restore your wallet with it

Electrum: the convenience of a web wallet, without the risks
Stn (OP)
Full Member
***
Offline Offline

Activity: 227
Merit: 100


View Profile
October 09, 2013, 03:29:39 PM
 #6

You can create bulk addresses with bitaddress or vanitygen and import them into electrum.
This is an option but kind hassling. I'd rather skip it.
Stn (OP)
Full Member
***
Offline Offline

Activity: 227
Merit: 100


View Profile
October 09, 2013, 03:38:41 PM
 #7

there is a "merchant script" for that.
I was not aware of such thing. Description is very tempting. Hope to see it soon.
adamas
Legendary
*
Offline Offline

Activity: 1014
Merit: 1003


VIS ET LIBERTAS


View Profile WWW
October 09, 2013, 04:45:14 PM
 #8


but I suggest you wait for the 1.9 release because the script in 1.8.1 is broken.

  Any deadline yet?

"Es ist kein Zeichen geistiger Gesundheit, gut angepasst an eine kranke Gesellschaft zu sein."
ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
October 09, 2013, 08:50:14 PM
 #9


but I suggest you wait for the 1.9 release because the script in 1.8.1 is broken.

  Any deadline yet?

soon

Electrum: the convenience of a web wallet, without the risks
Abdussamad
Legendary
*
Offline Offline

Activity: 3682
Merit: 1580



View Profile
October 10, 2013, 03:55:31 AM
 #10

You can generate any number of addresses you want using the master public key. Take a look at the code here:

https://github.com/prusnak/addrgen
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!