github.com/prysmaticlabs/prysm@v1.4.4/tools/drainContracts/README.md (about) 1 ## Utility to Drain All Deposit Contracts 2 3 This is a utility to help users drain the contract addresses they have deployed in order to get their testnet ether back. To run the utility, it defaults to an infura link but you can use your own provider through the flags. The utility will print out each address it sends a transaction to. 4 5 ### Usage 6 7 _Name:_ 8 **drainContracts** - this is a util to drain all deposit contracts 9 10 _Usage:_ 11 drainContracts [global options] 12 13 _Flags:_ 14 15 - --keystoreUTCPath value keystore JSON for account 16 - --httpPath value HTTP-RPC server listening interface (default: "http://localhost:8545/") 17 - --passwordFile value Password file for unlock account (default: "./password.txt") 18 - --privKey value Private key to unlock account 19 - --help, -h show help 20 - --version, -v print the version 21 22 ### Example 23 24 To use private key with default RPC: 25 26 ``` 27 bazel run //contracts/deposit-contract/drainContracts -- --httpPath=https://goerli.prylabs.net --privKey=$(echo /path/to/private/key/file) 28 ``` 29 30 ### Output 31 32 ``` 33 current address is 0xdbA543721462680431eC4eeB26163079B3645660 34 nonce is 7060 35 0xd1faa3f9bca1d698df559716fe6d1c9999155b38d3158fffbc98d76d568091fc 36 1190 chain start logs found 37 1190 contracts ready to drain found 38 Contract address 0x4cb8976E4Bf0b6A462AF8704F0f724775B67b4Ce drained in TX hash: 0x3f963c30c4fd4ff875c641be1e7b873bfe02ae2cd2d73554cc6087c2d3acaa9e 39 ```