Skip to content
Snippets Groups Projects
Commit 1f6f87db authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

getbalance shows the balance of a list of addresses.

parent e88d2c93
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
if [ -z "${BFAHOME}" ]; then echo "\$BFAHOME not set. Did you source bfa/bin/env ?" >&2; exit 1; fi
source ${BFAHOME}/bin/libbfa.sh || exit 1
function usage
{
fatal "Usage: $0 <addr> [...<addr>]"
}
prereq curl
test $# -ge 1 || usage
(
while [ -n "$1" ]
do
echo "'$1'+' '+web3.fromWei(eth.getBalance('$1'), 'Ether');"
shift
done
) | geth_attach
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment