# @neo-react/wallets

> React component that helps to handle NEO wallets and its keys for NEO dApp development

Latest version **0.1.0** (published 2019-08-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @neo-react/wallets
pnpm add @neo-react/wallets
yarn add @neo-react/wallets
bun add @neo-react/wallets
```

## Health

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

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2019-08-15 |
| First published | 2019-08-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 33.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ED |
| Maintainers | ediopia |
| Keywords | neo, blockchain, wallets, react |

## Links

- npm: https://www.npmjs.com/package/@neo-react/wallets
- Repository: https://github.com/ediopia/neo-react
- Homepage: https://github.com/ediopia/neo-react#readme
- Issues: https://github.com/ediopia/neo-react/issues
- npm.io page: https://npm.io/package/@neo-react/wallets

## Dependencies (7)

- [react-icons](https://npm.io/package/react-icons.md) ^3.7.0
- [react-loading](https://npm.io/package/react-loading.md) ^2.0.3
- [@neo-react/api](https://npm.io/package/@neo-react/api.md) ^0.1.0
- [react-spinners](https://npm.io/package/react-spinners.md) ^0.5.13
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^5.0.1
- [styled-components](https://npm.io/package/styled-components.md) ^4.3.2
- [@neo-react/local-wallet](https://npm.io/package/@neo-react/local-wallet.md) ^0.1.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2019-08-15
- 0.0.10 — 2019-08-14
- 0.0.9 — 2019-08-13
- 0.0.8 — 2019-08-13
- 0.0.7 — 2019-08-13
- 0.0.6 — 2019-08-13
- 0.0.5 — 2019-08-12

## README

# `@neo-react/wallets`

>This package helps to handle NEO wallets and its keys for NEO dApp development.

## Features

- Connect with O3 wallet.
- Connect with NOS client.
- Local wallet that provides encrypting and decrypting with wallet keys.

## Demo
[Click](https://codesandbox.io/s/neo-reactwallets-8d4hw)

## Usage

```typescript
import React from 'react';
import ReactNeoWallets from '@neo-react/wallets';

interface WalletProps {
  provider: string;
  address: string;
  encryptedKey?: string;
  privateKey?: string;
}

const walletsInLocalStorage = [
  {
    encryptedKey: '6PYRj8SFUkDXm8vBunXkvVGAAan6HF3iDfKT4wcQMkpGkDHsVG8cbD9eSi',
    address: 'AVKEWZxPog7j5gqfMoLhgox9HK44tWUG2J',
  },
  {
    encryptedKey: '6PYPUoZGMsGjWuqxekVcXrpzMdtks7VTSUZDoEpHLitjB2AnpWeLbpk2Dp',
    address: 'AeRhK6NDmGiNTz8yAAJe3o4ecaqztFL12B',
  },
];

const WalletModal = () => {
  return (
    <ReactNeoWallets
      savedWallets={walletsInLocalStorage}
      onConnected={(wallet: WalletProps) => {
        /* Handle connected wallet */
      }}
    />
  );
};
```

## Api

| Props | Type | Description |
| --- | ---  | --- |
| savedWallets | array | It passes encrypted key list to local wallet.
| onConnected | func | It returns wallet data after it is connected.

---
_Source: https://npm.io/package/@neo-react/wallets · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
