Skip to content
New issue

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

Transform web3.eth.getBalance into async? #2

Closed
abbbe opened this issue Jan 26, 2018 · 1 comment
Closed

Transform web3.eth.getBalance into async? #2

abbbe opened this issue Jan 26, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@abbbe
Copy link
Owner

abbbe commented Jan 26, 2018

No description provided.

@abbbe
Copy link
Owner Author

abbbe commented Jan 26, 2018

function checkAllBalances() {
web3.eth.getAccounts(function(err, accounts) {
accounts.forEach(function(id) {
web3.eth.getBalance(id, function(err, balance) {
console.log("" + id + ":\tbalance: " + web3.fromWei(balance, "ether") + " ether");
});
});
});
};

@abbbe abbbe moved this from To Do to In progress in b9labs-eth20-proj1 Jan 27, 2018
@abbbe abbbe moved this from In progress to To Do in b9labs-eth20-proj1 Jan 27, 2018
@abbbe abbbe moved this from To Do to In progress in b9labs-eth20-proj1 Jan 27, 2018
@abbbe abbbe moved this from In progress to To Do in b9labs-eth20-proj1 Jan 27, 2018
@abbbe abbbe moved this from To Do to In progress in b9labs-eth20-proj1 Jan 28, 2018
@abbbe abbbe added bug Something isn't working and removed enhancement New feature or request labels Jan 28, 2018
@abbbe abbbe mentioned this issue Jan 29, 2018
@abbbe abbbe closed this as completed in #24 Jan 29, 2018
b9labs-eth20-proj1 automation moved this from In progress to Done Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant