Skip to main content
Commonmark migration
Source Link

Is there any way of just unlocking accounts without opening the console with geth?

I'm writing some scripts to automate cluster generation and I wish I could just call geth to unlocking some accounts without starting another instance or attaching to an existing one.


Edit

##Edit IfIf I run something like:

geth --genesis "$GENESIS_FILE" --datadir "$DATA_DIR" --networkid "$NETWORK_ID" \
     --password <(echo -n $ACCOUNT_PASSWD) --unlock "$UNLOCK_INDEXES" \
     --exec '""' attach > /dev/null

after the node startup, the accounts are not unlocked.

The only way I've managed to get accounts unlocked was to unlock them when running geth in order to start the node.

Is there any way of just unlocking accounts without opening the console with geth?

I'm writing some scripts to automate cluster generation and I wish I could just call geth to unlocking some accounts without starting another instance or attaching to an existing one.


##Edit If I run something like:

geth --genesis "$GENESIS_FILE" --datadir "$DATA_DIR" --networkid "$NETWORK_ID" \
     --password <(echo -n $ACCOUNT_PASSWD) --unlock "$UNLOCK_INDEXES" \
     --exec '""' attach > /dev/null

after the node startup, the accounts are not unlocked.

The only way I've managed to get accounts unlocked was to unlock them when running geth in order to start the node.

Is there any way of just unlocking accounts without opening the console with geth?

I'm writing some scripts to automate cluster generation and I wish I could just call geth to unlocking some accounts without starting another instance or attaching to an existing one.


Edit

If I run something like:

geth --genesis "$GENESIS_FILE" --datadir "$DATA_DIR" --networkid "$NETWORK_ID" \
     --password <(echo -n $ACCOUNT_PASSWD) --unlock "$UNLOCK_INDEXES" \
     --exec '""' attach > /dev/null

after the node startup, the accounts are not unlocked.

The only way I've managed to get accounts unlocked was to unlock them when running geth in order to start the node.

added 4 characters in body
Source Link
Henrique Barcelos
  • 2.5k
  • 4
  • 20
  • 38

Is there any way of just unlocking accounts without opening the console with geth?

I'm writing some scripts to automate cluster generation and I wish I could just call geth to unlocking some accounts without starting another instance or attaching to an existing one.


##Edit If I run something like:

geth --genesis "$GENESIS_FILE" --datadir "$DATA_DIR" --networkid "$NETWORK_ID" \
     --password <(echo -n $ACCOUNT_PASSWD) --unlock "$UNLOCK_INDEXES" \
     --exec '""' attach > /dev/null

after the node startup, the accounts are not unlockedaccounts are not unlocked.

The only way I've managed to get accounts unlocked was to unlock them when running geth in order to start the node.

Is there any way of just unlocking accounts without opening the console with geth?

I'm writing some scripts to automate cluster generation and I wish I could just call geth to unlocking some accounts without starting another instance or attaching to an existing one.


##Edit If I run something like:

geth --genesis "$GENESIS_FILE" --datadir "$DATA_DIR" --networkid "$NETWORK_ID" \
     --password <(echo -n $ACCOUNT_PASSWD) --unlock "$UNLOCK_INDEXES" \
     --exec '""' attach > /dev/null

after the node startup, the accounts are not unlocked.

The only way I've managed to get accounts unlocked was to unlock them when running geth in order to start the node.

Is there any way of just unlocking accounts without opening the console with geth?

I'm writing some scripts to automate cluster generation and I wish I could just call geth to unlocking some accounts without starting another instance or attaching to an existing one.


##Edit If I run something like:

geth --genesis "$GENESIS_FILE" --datadir "$DATA_DIR" --networkid "$NETWORK_ID" \
     --password <(echo -n $ACCOUNT_PASSWD) --unlock "$UNLOCK_INDEXES" \
     --exec '""' attach > /dev/null

after the node startup, the accounts are not unlocked.

The only way I've managed to get accounts unlocked was to unlock them when running geth in order to start the node.

edited tags
Source Link
Henrique Barcelos
  • 2.5k
  • 4
  • 20
  • 38

Unlock How to unlock accounts and exitprogrammatically after the node has started?

Is there any way of just unlocking accounts without opening the console with geth?

I'm writing some scripts to automate cluster generation and I wish I could just call geth to unlocking some accounts without starting another instance or attaching to an existing one.


##Edit If I run something like:

geth --genesis "$GENESIS_FILE" --datadir "$DATA_DIR" --networkid "$NETWORK_ID" \
     --password <(echo -n $ACCOUNT_PASSWD) --unlock "$UNLOCK_INDEXES" \
     --exec '""' attach > /dev/null

after the node startup, the accounts are not unlocked.

The only way I've managed to get accounts unlocked was to unlock them when running geth in order to start the node.

Unlock accounts and exit

Is there any way of just unlocking accounts without opening the console with geth?

I'm writing some scripts to automate cluster generation and I wish I could just call geth to unlocking some accounts without starting another instance or attaching to an existing one.

How to unlock accounts programmatically after the node has started?

Is there any way of just unlocking accounts without opening the console with geth?

I'm writing some scripts to automate cluster generation and I wish I could just call geth to unlocking some accounts without starting another instance or attaching to an existing one.


##Edit If I run something like:

geth --genesis "$GENESIS_FILE" --datadir "$DATA_DIR" --networkid "$NETWORK_ID" \
     --password <(echo -n $ACCOUNT_PASSWD) --unlock "$UNLOCK_INDEXES" \
     --exec '""' attach > /dev/null

after the node startup, the accounts are not unlocked.

The only way I've managed to get accounts unlocked was to unlock them when running geth in order to start the node.

Source Link
Henrique Barcelos
  • 2.5k
  • 4
  • 20
  • 38
Loading