Title: [Javascript / Node.js] Detect cryptocoin by address (Bitcoin, Litecoin, etc) Post by: pocesar on July 29, 2013, 02:07:58 PM 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:
Feedback and bugs leave in this thread or open an issue on github! Title: Re: [Javascript / Node.js] Detect cryptocoin by address (Bitcoin, Litecoin, etc) Post by: Remember remember the 5th of November on July 29, 2013, 03:19:02 PM Some cryptocoins have addresses that are the same as Bitcoin's.
Title: Re: [Javascript / Node.js] Detect cryptocoin by address (Bitcoin, Litecoin, etc) Post by: pocesar on July 29, 2013, 03:36:16 PM 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) Title: Re: [Javascript / Node.js] Detect cryptocoin by address (Bitcoin, Litecoin, etc) Post by: peapodamus on July 29, 2013, 06:46:08 PM Thanks for this! This will be helpful in the many projects I plan to make but have not started yet :P
|