bitcoin-address

0.3.0 • Public • Published

bitcoin-address Build Status

Functions for working with bitcoin addresses

install

npm install bitcoin-address

API

validate (address [, type])

returns true if the address (string) is a valid bitcoin address optionally, you can specify 'prod' or 'testnet' for the type to limit validation that that subset of addresses

get_address_type (address)

returns address type if valid base58 address, otherwise null

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.0
    4,194
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.3.0
    4,194
  • 0.2.0
    1
  • 0.1.0
    1
  • 0.0.3
    1
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i bitcoin-address

Weekly Downloads

4,199

Version

0.3.0

License

none

Last publish

Collaborators

  • defunctzombie