Skip to content

Instantly share code, notes, and snippets.

@MCarlomagno
Created April 14, 2022 00:47
Embed
What would you like to do?
async fetchAccounts() {
if(typeof window === "undefined") return;
return window
.ethereum?.request({ method: "eth_accounts" })
.catch((err: any) => console.log(err));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment