GitXplorerGitXplorer
k

cryptocurrency-address-detector

public
45 stars
10 forks
8 issues

Commits

List of commits on branch master.
Verified
49bbbe7d547bf9122d479ebd3d09e18719c069ec

Bump y18n from 4.0.0 to 4.0.1 (#8)

ddependabot[bot] committed 4 years ago
Verified
6c92e1c9d2c191e202b2af7c83e22d0e0a5dc90b

Bump lodash from 4.17.19 to 4.17.21 (#9)

ddependabot[bot] committed 4 years ago
Verified
4db7dd0ef7119be11952739060547ee2ae3a932e

Bump hosted-git-info from 2.8.8 to 2.8.9 (#10)

ddependabot[bot] committed 4 years ago
Verified
47fec989bfe3ae156eabdaab1d5c4f4457e42e62

Bump ini from 1.3.5 to 1.3.7 (#7)

ddependabot[bot] committed 4 years ago
Verified
bd87a9b149990d443447393b663ecd44c8ffa196

Merge pull request #5 from k4m4/dependabot/npm_and_yarn/lodash-4.17.19

kk4m4 committed 5 years ago
Verified
ac76ad63a0372cc6500312bbd1863b4e45aa8ea8

Bump lodash from 4.17.15 to 4.17.19

ddependabot[bot] committed 5 years ago

README

The README file for this repository.

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

Related

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

License

MIT © Nikolaos Kamarinakis