more scripts

This commit is contained in:
2021-06-26 16:52:22 +02:00
parent 2ab3f97726
commit a77efb2f8b
8 changed files with 58 additions and 4 deletions

6
ethw Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
WEB3_RPC_URL='https://mainnet.infura.io/v3/6570d341bf4b4d499a5b5026c46e20ba'
export WEB3_RPC_URL
WEB3_PRIVATE_KEY=0x` keepassxc-cli show ~/keys/Passwörter.kdbx 'ether wallet' -k ~/keys/passwörter.key -s | awk '{ if($1 == "Password:") {printf "%s", $2} }' | node ~/mining/ethGetPk/index.js`
export WEB3_PRIVATE_KEY
exec web3 "$@"