Socket
Socket
Sign inDemoInstall

cryptocurrency-address-detector

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cryptocurrency-address-detector

Detect which cryptocurrency an address corresponds to.


Version published
Weekly downloads
91
increased by62.5%
Maintainers
1
Weekly downloads
 
Created
Source

cryptocurrency-address-detector Build Status

Detect which cryptocurrency an address corresponds to.

Install

~ ❯❯❯ npm install cryptocurrency-address-detector

Usage

const addressDetect = require('cryptocurrency-address-detector');

addressDetect('0x281055afc982d96fab65b3a49cac8b878184cb16').then(cryptocurrency => {
	console.log(cryptocurrency);
	//=> 'ETH'
});

addressDetect('1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp').then(cryptocurrency => {
	console.log(cryptocurrency);
	//=> 'BTC/BCH'
});

addressDetect('LQL9pVH1LsMfKwt82Y2wGhNGkrjF8vwUst').then(cryptocurrency => {
	console.log(cryptocurrency);
	//=> 'LTC'
});

addressDetect('0xsfdlffsjksldfj[IPv6:2001:db8::2]').then(cryptocurrency => {
	console.log(cryptocurrency);
	//=> 'Cryptocurrency could not be detected'
});

API

addressDetect(address, [options])

Returns the cryptocurrency that an address corresponds to.

address

Type: string

Address to check for popular cryptocurrencies.

options
timeout

Type: number

Timeout in milliseconds after which a request is considered failed. Default: 5000.

Supported Cryptocurrencies

  • cryptaddress.now - Minimal service to detect what cryptocurrency an address corresponds to.

License

MIT © Nikolaos Kamarinakis

Keywords

FAQs

Package last updated on 04 Apr 2020

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