Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

biggybank

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

biggybank

refill a bitcoin address from console

  • 0.0.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

biggybank

icon

biggybank is a drop-in library that lets you refill a Bitcoin address from console using:

  1. Raw address
  2. QRCode
  3. MoneyButton (Through ButtonPage
  4. Send a PR if you have another method

How it works

It displays the address and its QR code in the terminal:

term

It also gives you a link to ButtonPage which lets you refill the address using Moneybutton.

button

Install

Install both bsv and biggybank

npm install --save bsv
npm install --save biggybank

Usage

Biggybank returns a string which includes the QRCode and other messages

const biggybank = require('biggybank')
biggybank({ address: "19HxigV4QyBv3tHpQVcUEQyq1pzZVdoAut" }, function(err, str) {
  console.log(str)
})

Add a simple message to the header:

const biggybank = require('biggybank')
biggybank({
  address: "19HxigV4QyBv3tHpQVcUEQyq1pzZVdoAut",
  message: "Send money to b.bitdb.network"
}, function(err, str) {
  console.log(str)
})

Specifying Insight endpoint

const biggybank = require('biggybank')
biggybank({ endpoint: "https://bchsvexplorer.com" }, function(err, str) {
  console.log(str)
})

Advanced Usage for Moneybutton

You can also manually construct moneybutton payload:

const biggybank = require('biggybank')
biggybank({
  payload: {
    to: "19HxigV4QyBv3tHpQVcUEQyq1pzZVdoAut",
    editable: true,
    currency: "USD",
    type: "tip"
  },
  message: "Send money to b.bitdb.network"
}, function(err, str) {
  console.log(str)
})

FAQs

Package last updated on 21 Jun 2019

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