> For the complete documentation index, see [llms.txt](https://pools-chain.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pools-chain.gitbook.io/documentation/built-for-developers/pools-sdk/supported-platforms/javascript/other-web-frameworks.md).

# Other web frameworks

You can import Pools SDK into your web dapp to enable your users to easily connect to the Pools Wallet. The SDK for other web frameworks has the same prerequisites as for standard JavaScript.

### Steps[​](https://docs.metamask.io/wallet/how-to/connect/set-up-sdk/javascript/other-web-frameworks/#steps) <a href="#steps" id="steps"></a>

#### 1. Install the SDK[​](https://docs.metamask.io/wallet/how-to/connect/set-up-sdk/javascript/other-web-frameworks/#1-install-the-sdk) <a href="#id-1-install-the-sdk" id="id-1-install-the-sdk"></a>

In your project directory, install the SDK using Yarn or npm:

```
yarn add @pools/sdk
```

or

```
npm i @pools/sdk
```

#### 2. Import the SDK[​](https://docs.metamask.io/wallet/how-to/connect/set-up-sdk/javascript/other-web-frameworks/#2-import-the-sdk) <a href="#id-2-import-the-sdk" id="id-2-import-the-sdk"></a>

In your project script, add the following to import the SDK:

```
import { PoolsSDK } from '@pools/sdk';
```

#### 3. Instantiate the SDK[​](https://docs.metamask.io/wallet/how-to/connect/set-up-sdk/javascript/other-web-frameworks/#3-instantiate-the-sdk) <a href="#id-3-instantiate-the-sdk" id="id-3-instantiate-the-sdk"></a>

Instantiate the SDK using any options:

```
const PSDK = new PoolsSDK(options);

const ethereum = PSDK.getProvider(); // You can also access via window.ethereum
```

#### 4. Use the SDK[​](https://docs.metamask.io/wallet/how-to/connect/set-up-sdk/javascript/other-web-frameworks/#4-use-the-sdk) <a href="#id-4-use-the-sdk" id="id-4-use-the-sdk"></a>

Use the SDK by calling any provider API methods. Always call `eth_requestAccounts` using `ethereum.request()` first, since it prompts the installation or connection popup to appear.

```
ethereum.request({ method: 'eth_requestAccounts', params: [] });
```
