☸️SubWallet

SubWallet is a popular and comprehensive Polkadot, Substrate & Ethereum wallet available both on Mobile and Browser

Activate SubWallet extension:

window.chosenProvider = await window.SubWallet;
const subWalletExtension = window.injectedWeb3["subwallet-js"];
const extension = await subWalletExtension.enable();
let provider = new ethers.providers.Web3Provider(window.chosenProvider);
const signer = await provider.getSigner();
const accounts = await provider.send("eth_requestAccounts", []);
return accounts[0]

Contrary to other wallets, SubWallet is returning an array made of the accounts available, hence the need to use the first account of the array.

Official SubWallet website

Last updated