New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

peanuts

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

peanuts

query multiple wallets for their balance

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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 ]
})

Keywords

FAQs

Package last updated on 04 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc