We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For example (the below script) -
i = 0; while (i < eth.accounts.length) { account = eth.accounts[i]; balance = web3.fromWei(eth.getBalance(account), "ether"); console.log("Account: " + account); console.log("Balance: " + balance + '\n'); i++; }
Can be run like -
docker exec -it bootstrap geth --datadir=~/.ethereum/devchain --jspath "/tmp/scripts" --exec 'loadScript("getAccountBalances.js")' attach
Should wrap this up to make it a bit easier to consume and less convoluted
The text was updated successfully, but these errors were encountered:
@tayzlor Here's what I got
# Use loadScript npm run exec -- 'loadScript("/src/helloworld.js")' # Or just load JS=./src/helloworld.js npm run load
More at https://github.com/katopz/ethereum-docker#to-run-external-javascript-file
Want me to PR? :)
Sorry, something went wrong.
No branches or pull requests
For example (the below script) -
Can be run like -
Should wrap this up to make it a bit easier to consume and less convoluted
The text was updated successfully, but these errors were encountered: