QuickNode
Published in

QuickNode

Photo by Hannah Joshua on Unsplash

sbt-ethereum — A Tool for Interacting with the Ethereum Blockchain via Command Line

simple, elegant way to develop/deploy smart contracts & more!

git clone https://github.com/swaldman/eth-command-line.git --branch 0.1.10
$ cd eth-command-line
$ ls
LICENSE README.md build.sbt project sbtw
$ ./sbtw
There are no wallets in the sbt-ethereum keystore. Would you like to generate one? [y/n] yWould you like the new address '0x1144f4f7aad0c463c667e0f8d73fc13f1e7e86a2' to be the default sender on chain with ID 1? [y/n] y
sbt:eth-command-line> ethNodeUrlDefaultSet https://xxxx-xxxx-xxxx.quiknode.io/uuid/token/
sbt:eth-command-line> ethNodeBlockNumberPrint
ethNodeBlockNumberPrint       ethNodeChainId                ethNodeChainIdDefaultDrop     ethNodeChainIdDefaultPrint    ethNodeChainIdDefaultSet      
ethNodeChainIdOverride ethNodeChainIdOverrideDrop ethNodeChainIdOverridePrint ethNodeChainIdOverrideSet ethNodeChainIdPrint
ethNodeUrl ethNodeUrlDefaultDrop ethNodeUrlDefaultPrint ethNodeUrlDefaultSet ethNodeUrlOverride
ethNodeUrlOverrideDrop ethNodeUrlOverridePrint ethNodeUrlOverrideSet ethNodeUrlPrint
sbt:eth-command-line> ethAddressAliasList
ethAddressAliasSet new-name default-sender

Wallet commands

ethKeystoreWalletV3Create
ethKeystorePrivateKeyReveal <hex address> or <alias-name>
ethKeystoreWalletV3FromPrivateKeyImport
> ethKeystoreWalletV3FromJsonImportV3 Wallet JSON: {"address":"d78fe1d978ad8cc5a94484725d059bec694f215e","crypto":{"mac":"98c53c7d05c7daeb1b8d2bef6af8643bf679a73a34d014f09a45f7035088f89b","kdf":"pbkdf2","cipherparams":{"iv":"70c4340f5305dca3fad9e54d47db4a2b"},"ciphertext":"9a2fc0212827877068d5a54f0ad64fab8767d52849535305e984682db25be23d","cipher":"aes-128-ctr","kdfparams":{"salt":"b9562670465f5ec13a4babe91aea6bd41d3400dfb0f97b1fb21617cbd62e9782","dklen":32,"c":262144,"prf":"hmac-sha256"}},"id":"f2f3bad7-4da0-424b-a363-fde7a6e3cb49","version":3}
[info] Imported JSON wallet for address '0xd78fe1d978ad8cc5a94484725d059bec694f215e', but have not validated it.
[info] Consider validating the JSON using 'ethKeystoreWalletV3Validate 0xd78fe1d978ad8cc5a94484725d059bec694f215e'.
[success] Total time: 3 s, completed Mar 16, 2019 12:35:14 AM
ethKeystoreWalletV3Validate <address-hex> or  <alias-name>
ethKeystoreWalletV3Print <address-hex> or <alias-name>

About QuikNode

--

--

A platform to access ETH, BTC, BSC, MATIC, OPTIMISM, ARBITRUM, FTM, CELO, SOL, TERRA & xDAI blockchains via API. Infra & tools to build + scale your #Web3 dApp!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store