# @paras-wallet-selector/core

> This is the core package for NEAR Wallet Selector.

Latest version **5.2.0** (published 2023-01-24) · 0 weekly downloads

## Install

```sh
npm install @paras-wallet-selector/core
pnpm add @paras-wallet-selector/core
yarn add @paras-wallet-selector/core
bun add @paras-wallet-selector/core
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.2.0 |
| Published | 2023-01-24 |
| First published | 2022-07-25 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 386.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | irfianto, ahnafalfariza |

## Links

- npm: https://www.npmjs.com/package/@paras-wallet-selector/core
- npm.io page: https://npm.io/package/@paras-wallet-selector/core

## Dependencies (2)

- [rxjs](https://npm.io/package/rxjs.md) ~7.4.0
- [near-api-js](https://npm.io/package/near-api-js.md) 0.44.2

## Recent versions

- 5.2.0 (latest) — 2023-01-24
- 5.1.1-beta2 (beta) — 2022-12-22
- 5.1.1 — 2023-01-10
- 5.1.1-beta1 — 2022-12-22
- 5.1.0 — 2022-12-14
- 5.1.0-beta2 — 2022-12-14
- 5.1.0-beta1 — 2022-12-14
- 5.0.3-beta2 — 2022-08-11
- 5.0.3-beta1 — 2022-08-11
- 5.0.3 — 2022-08-11
- 5.0.2 — 2022-08-10
- 5.0.0-beta-1 — 2022-07-26
- 5.0.0-beta — 2022-07-25

## README

# @paras-wallet-selector/core

This is the core package for NEAR Wallet Selector.

## Installation and Usage

The easiest way to use this package is to install it from the NPM registry:

```bash
# Using Yarn
yarn add @paras-wallet-selector/core

# Using NPM.
npm install @paras-wallet-selector/core
```

Then use it in your dApp:

```ts
import { setupWalletSelector } from "@paras-wallet-selector/core";
import { setupNearWallet } from "@paras-wallet-selector/near-wallet";

// The entire set of options can be found in the section below.
const selector = await setupWalletSelector({
  network: "testnet",
  modules: [setupNearWallet()],
});
```

## Options

- `network` (`NetworkId | Network`): Network ID or object matching that of your dApp configuration . Network ID can be either `mainnet` or `testnet`.
  - `networkId` (`string`): Custom network ID (e.g. `localnet`).
  - `nodeUrl` (`string`): Custom URL for RPC requests.
  - `helperUrl` (`string`): Custom URL for creating accounts.
  - `explorerUrl` (`string`): Custom URL for the NEAR explorer.
- `debug` (`boolean?`): Enable internal logging for debugging purposes. Defaults to `false`.
- `storage` (`StorageService?`): Async storage implementation. Useful when [`localStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) is unavailable. Defaults to `localStorage`.
- `modules` (`Array<WalletModuleFactory>`): List of wallets to support in your dApp.

## API Reference

You can find the entire API reference for Wallet Selector [here](./docs/api/selector.md).

## License

This repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

---
_Source: https://npm.io/package/@paras-wallet-selector/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
