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

# SubWallet

<figure><img src="https://4041031635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FabE9QakcuvS5SMSP90QO%2Fuploads%2F0zwDXlGlNetoKwW85Bfl%2Fimage.png?alt=media&#x26;token=dde768e6-0dab-484e-b745-8bbae3775fa7" alt=""><figcaption></figcaption></figure>

### Activate SubWallet extension:

```javascript
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](https://www.subwallet.app/)
