robertkowalski / peanuts

query multiple wallets for their balance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)  // [ 8000.00032346, 0 ]
})

About

query multiple wallets for their balance

License:Other


Languages

Language:JavaScript 100.0%