add blockchain install scripts
This commit is contained in:
parent
0e9e27b97b
commit
178f576cfb
39 changed files with 3938 additions and 750 deletions
|
|
@ -22,7 +22,8 @@ module.exports = {
|
|||
sweep,
|
||||
defaultAddress,
|
||||
supportsHd: true,
|
||||
newFunding
|
||||
newFunding,
|
||||
privateKey
|
||||
}
|
||||
|
||||
if (!web3.isConnected()) {
|
||||
|
|
@ -31,6 +32,10 @@ if (!web3.isConnected()) {
|
|||
|
||||
const hex = bigNum => '0x' + bigNum.truncated().toString(16)
|
||||
|
||||
function privateKey (account) {
|
||||
return defaultWallet(account).getPrivateKey()
|
||||
}
|
||||
|
||||
function sendCoins (account, toAddress, cryptoAtoms, cryptoCode) {
|
||||
return generateTx(toAddress, defaultWallet(account), cryptoAtoms, false)
|
||||
.then(_.tap(r => console.log('DEBUG113: %s', r)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue