/LightWallet-Ethereum-NodeJS

Api in nodejs with all the functionalities that a lightwallet can make available.

Primary LanguageJavaScriptGNU Affero General Public License v3.0AGPL-3.0

LightWallet Ethereum NodeJS

Api in nodejs with all the functionalities that a lightwallet can make available. Compatible with token ERC20.

Getting Started

npm install 
npm start

Routes

/seed/:point

add entropy to the wallet seed security phrase generation

Inputs

  • point:

Outputs

  • data:[isError,Seed]

/wallet

function responsible for the generation of wallet.json where the seed is received from '/seed/:point'

Inputs

  • seed:
  • password:

Outputs

  • data:[wallet]

/wallet/seed

function responsible for return wallet for seed

Inputs

  • password:
  • seed:

Outputs

  • data:[wallet]

/wallet/validate

function responsible for validate if password is compatible with wallet

Inputs

  • wallet:
  • password:

Outputs

  • data:[isError,Msg]

/seed

function responsible for show seed

Inputs

  • wallet:
  • password:

Outputs

  • data:[isError,Seed]

/eth/balance

Function responsible for returning account balance in ETH 

Inputs

  • wallet:
  • password:

Outputs

  • data:[address,balance]

/contract/balance

Function responsible for returning account balance in token contract ERC20

Inputs

  • wallet:
  • password:

Outputs

  • data:[address,balance]

/eth/send

Function responsible for send ETH

Inputs

  • wallet:
  • password:
  • to:
  • from:
  • gasLimit:
  • gasPrice:
  • value:

Outputs

  • data:[isError,hash]

/contract/send

Function responsible for send Token Contract

Inputs

  • wallet:
  • password:
  • to:
  • from:
  • gasLimit:
  • gasPrice:
  • value:

Outputs

  • data:[isError,hash]

/transaction/:address

Function responsible for return list all transaction 

Inputs

  • address:

Outputs

  • JSON all transaction