Author

Topic: [Javascript / Node.js] Detect cryptocoin by address (Bitcoin, Litecoin, etc) (Read 1185 times)

newbie
Activity: 43
Merit: 0
Thanks for this! This will be helpful in the many projects I plan to make but have not started yet Tongue
member
Activity: 105
Merit: 10
Some cryptocoins have addresses that are the same as Bitcoin's.

yup, that's why I added the 'conflict' member of the result of the function, so you might resolve the conflicts by yourself (either by querying a block explorer or the daemon directly)
legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
Some cryptocoins have addresses that are the same as Bitcoin's.
member
Activity: 105
Merit: 10
Quote
Detects which cryptcoin is the given cryptocoin address (starts with some coins listed in CoinWarz.com that have working block explorers)

This isn't by any means accurate, it's a quick & dirty check, you have to resolve any conflicts by yourself.

The addresses are checked using base58Check native module (currently doesn't work on Windows, so it's shim'ed)

https://github.com/pocesar/node-detect-cryptocoin

supports out-of-box:

  • Bitcoin
  • Noirbits
  • Terracoin
  • Krugercoin
  • Bottlecaps
  • Fastcoin
  • Digital Coin
  • BBQCoin
  • Bitbar
  • Novacoin
  • Litecoin
  • Worldcoin
  • Feathercoin
  • Franko
  • Mincoin
  • Stablecoin
  • Megacoin
  • PPCoin
  • Hypercoin
  • Freicoin
  • Alphacoin
  • Namecoin
  • Ixcoin
  • Devcoin
  • Primecoin

Feedback and bugs leave in this thread or open an issue on github!
Jump to: