0.1.0 • Published 9 years ago

testnet-charger v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Testnet charger

Prevent testnet faucet abuse by withdrawing once and then distributing the funds among addresses in wallet

Usage

var Charger = require('testnet-charger')
var c = new Charger(wallet) // wallet is instance of github.com/tradle/cb-wallet
c.charge(wallet.getNextAddress(1), 1000)
c.charge(wallet.getNextAddress(2), 1042)
c.charge(wallet.getNextAddress(3), 2378)
// optional: c.setFaucet(Charger.faucets.RoyalForkBlog)
c.execute(function(err) {
  if (!err) {
    console.log('Withdrew TBTC from faucet and distributed to specified addresses')
  }
})
0.1.0

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.1

9 years ago