1.1.1 • Published 4 years ago

puredapp-react v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

PUREDAPP REACT

Start importing puredapp-react package

Functions Available

  • 1. CloveRoute
  • 2. getCurrentNetwork - Retrieves current network
  • 3. getCurrentAccount - Retrieves current account's public address
  • 4. saveToLocalStorage - Stores values to local storage for later use
  • 5. createMnemonic - Generate random mnemonic.
  • 6. createAccountWithoutAssert - Generate random address and privateKey for a given network

URL Instructions

  • btc mainnet /full/btc#encryptedPrivateKey /lite/btc#publicAddress

  • btc Testnet /full/btc/testnet#encryptedPrivateKey /lite/btc/testnet#publicAddress

  • eth mainnet /full/eth#encryptedPrivateKey /lite/eth#publicAddress

  • eth ropsten /full/eth/ropsten#encryptedPrivateKey /lite/eth/ropsten#publicAddress

createAccountWithoutAssert(network) - Uses crypto-wallets package

  • Network - type String - "BTC", "ETH", "BCH", "DOGE", "IOTA", "LTC", "XMR", "NMC", "PPC", "XTZ"
  • Returns - Object { privatekey, address }