arnaucube
arnaucube/kestoPublic Self-hosted repository
kesto/recover-geth-funds/README.md
recover-geth-funds/README.mdRaw
 1# recover-geth-funds
 2Very simple cli to send all the funds from a geth KeyStore to an address.
 3
 4```
 5COMMANDS:
 6   info     get info
 7   sendall  send all eth to address
 8   help, h  Shows a list of commands or help for one command
 9
10GLOBAL OPTIONS:
11   --config value
12   --address value
13   --help, -h       show help
14   --version, -v    print the version
15```
16
17# Example
18
19```
20> go run main.go --address=0xbbb...bbb sendall
21
22Sending to: 0xbbb...bbb
23Keystore and account unlocked successfully: 0xaaa...aaa
24Connection to web3 server opened url https://web3.url
25Current balance: 0.361380906720109598 ETH
26Nonce: 183
27balance 0.10380807320336598 ETH
28 tosend 0.10380802320336598 ETH (substracting the fees)
29(y/N): y
30operation confirmed
31tx sent: 0xccccc...ccc
32```