@neo-react/local-wallet
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@neo-react/local-wallet

React component that helps to handle encrypting and decrypting NEO wallet keys.

Demo

Click

Usage

import React from "react";
import LocalWallet from "@neo-react/local-wallet";

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

const WalletModal = () => {
  return(
    <LocalWallet 
      onConnected={(connectedWallet: ConnectedWallet) => {
        /* Handle data using your own state manager */
      }} 
    />
  )
}

Api

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

Package Sidebar

Install

npm i @neo-react/local-wallet

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

135 kB

Total Files

163

Last publish

Collaborators

  • ediopia