react-native-action-wallet-eth
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

React-native-action-wallet-eth

Features

Installation

Clone the repo

git clone https://github.com/ongdetui/react-native-action-wallet-eth.git

Install NPM packages

npm i react-native-action-wallet-eth

If use yarn

yarn add react-native-action-wallet-eth

Create Wallet

 import {createWallet} from 'react-native-action-wallet-eth'

 // Create new wallet
 await createWallet('rinkeby');

 // Import privateKey
 await createWallet('rinkeby', {privateKey: 'privateKey your'});

 // Re-store wallet
 await createWallet('rinkeby', {mnemonic: 'mnemonic your'});

getHistory

  import {getHistory} from 'react-native-action-wallet-eth'

  function getHistory(
   network: string,
   address: string,
   option?: {
      startblock?: number;
      endblock?: number;
      sort?: string;
   }
  ): Promise<ResponseHistory>;

getBalance

  import {getBalance} from 'react-native-action-wallet-eth'

  function getBalance(
   network: string,
   address: string
  ): Promise<ResponseBalance>;

Package Sidebar

Install

npm i react-native-action-wallet-eth

Weekly Downloads

1

Version

1.1.1

License

ISC

Unpacked Size

8.29 kB

Total Files

4

Last publish

Collaborators

  • 07_thang11