# near-wallet-validator

> checks if a near wallet exists.

Latest version **1.0.6** (published 2022-11-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install near-wallet-validator
pnpm add near-wallet-validator
yarn add near-wallet-validator
bun add near-wallet-validator
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2022-11-29 |
| First published | 2022-11-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rui Santiago |
| Maintainers | sainthiago |
| Keywords | near, wallet, crypto, typescript, web3.0, library, npm, ts |

## Links

- npm: https://www.npmjs.com/package/near-wallet-validator
- Repository: https://github.com/sainthiago/near-wallet-validator
- Homepage: https://github.com/sainthiago/near-wallet-validator#readme
- Issues: https://github.com/sainthiago/near-wallet-validator/issues
- npm.io page: https://npm.io/package/near-wallet-validator

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 1.0.6 (latest) — 2022-11-29
- 1.0.5 — 2022-11-29
- 1.0.4 — 2022-11-29
- 1.0.3 — 2022-11-29
- 1.0.2 — 2022-11-29
- 1.0.1 — 2022-11-29
- 1.0.0 — 2022-11-29

## README

![Licence](https://img.shields.io/badge/license-MIT-blue.svg) [![npm version](https://img.shields.io/npm/v/near-wallet-validator.svg?style=flat)](https://www.npmjs.com/package/near-wallet-validator)
[![Downloads](https://img.shields.io/npm/dt/near-wallet-validator.svg)](https://www.npmjs.com/package/near-wallet-validator)

# near-wallet-validator

Checks if a near wallet exists.


## Installation

```npm i near-wallet-validator```

## Live Demo

https://codesandbox.io/s/near-wallet-validator-example-3r2lyo

## Example

```javascript
import "./styles.css";
import { NearRPC, nearWalletExists } from "near-wallet-validator";
import { useEffect, useState } from "react";

export default function App() {
  const [walletExists, setWalletExists] = useState(false);
  const checkWallet = async () => {
    const res = await nearWalletExists("1.testnet", NearRPC.TESTNET);
    setWalletExists(res);
  };

  useEffect(() => {
    checkWallet();
  }, []);

  return (
    <div className="App">
      <h1>near-wallet-validator</h1>
      <p>Does 1.testnet exists in testnet?</p>
      <span>{walletExists ? "Yes" : "No"}</span>
    </div>
  );
}

```


## API

|   Property   |  Type  |    Description    |
| :---         |     :---      |          :--- |
| wallet   | string    | Wallet name.    |
| rpc     | NearRPC    | TESTNET or MAINNET.  |

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