Skip to content

Instantly share code, notes, and snippets.

@GrandSchtroumpf
Created April 12, 2018 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GrandSchtroumpf/583f6461361067f4d90973539e7d5864 to your computer and use it in GitHub Desktop.
Save GrandSchtroumpf/583f6461361067f4d90973539e7d5864 to your computer and use it in GitHub Desktop.
Get accounts wrapper for Angular
/** Return the list of accounts available */
public getAccounts(): Observable<string[]> {
return fromPromise(this.web3.eth.getAccounts());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment