peanuts
A small module to query multiple wallets for their balance
Connector: blockr.io
peanuts.blockr (type, wallets, opts, cb)
- type
String
: currently ltc, btc, dgc, mec, ppc, qrk or tbtc - wallets
Array
: an array of wallet adresses - opts
Object
: - url
String
: the api url - cb (err, res)
Function
: will return an array with the balance of each wallet
Example
var p = require("peanuts")
var addresses = ["198aMn6ZYAczwrE5NvNTUMyJ5qkfy4g3Hi",
"1L8meqhMTRpxasdGt8DHSJfscxgHHzvPgk"]
p.blockr("btc", addresses, {}, function (err, balances) {
console.log(balances)
})