Last active
April 25, 2018 11:42
-
-
Save epexa/70d2fd6d39f45c3e47d44ff237255b2a to your computer and use it in GitHub Desktop.
Example async/await on blockchain Golos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getAccounts = async(accounts) => { | |
return await golos.api.getAccounts(accounts); | |
}; | |
getAccounts(['goloscore']) | |
.then(response => { | |
console.log(response); | |
}) | |
.catch(error => { | |
console.error(error); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment