leeyeon wallet core module
npm install
npm install --global webpack
npm install --global webpack-cli
webpack
npm install git+https://github.com/etherstudy/leeyeon-wallet-core.git
To use wallet in Node.js, just require it:
var wallet = require("./wallet.js");
A minified, browserified file dist/wallet.min.js is included for use in the browser. Including this file simply attaches the wallet object to window:
<script src="wallet.min.js"></script>
wallet.start(
{
"name" : "ropsten",
"type" : "http", // or wss
"network": {"http" : "https://ropsten.infura.io",
"wss" : "wss://ropsten.infura.io/ws",
"api" : "https://api-ropsten.etherscan.io",
"href" : "https://ropsten.etherscan.io"},
"erc20s" : {"<<ADDRESS>>":["<<NAME>>","<<ICON>>"]},
"erc721s": {}
}
);
wallet.account.create(password);
wallet.login(password,keyObject,error,success);
wallet.logout(callback=null);
wallet.utils.getBalance(address,token,callback=null);
wallet.account.decrypt(password,keyObject);
wallet.tx.transfer(password,keyObject,to,gasPrice,weiAmount,error=null,hash=null,success=null);
wallet.logs.txlistAll(address,token,callback);