I found this C# tool to generate addresses for Bitcoin (compressed and uncompressed):



It works perfectly for Bitcoin, but for Litecoin it seems not to work.

Any ideas how to use similar code to generate Litecoin Addresses?


2 Answers 2


That's odd, since BAU's docs say that they ought to work with Litecoin. In the drop-down menu that selects the coin type, have you selected Litecoin?

Alternately, if you're willing to run an RPC node, you could use BitcoinLib, and call CoinService.GetNewAddress(String).

Generally, it's exactly the same as generating Bitcoin addresses, except that the version byte is 48 instead of 0.

  • 1
    I accepted your answer because of your Alternative suggestion of using CoinService.GetNewAddress(String). That sounds like a very good idea, since Bitcoinlib supports not just Bitcoin but other altcoins. Thanks a lot! For the record - Selecting Litecoin in the Drop Down Menu DOESN'T WORK, it generates wrong addresses. it looks that Bitcoin_Address_Utility is just working 100% for Bitcoin.
    – Gustir
    Feb 19, 2015 at 12:49

Bitcoin and Litecoin have different inner workings, so many of their parts shouldn't be interchangeable.

A short answer to your question could be: do you know C++ ? In this case, you could take a look at the parts of the reference implementation of Litecoin where the addresses are generated, and adapt it to C#.

Another answer would be to find an alternative library, independent of Litecoin reference implementation. One such implementation seems to be Litecoin-PHP-Library, that is a heavily commented PHP code, where you can find answers to your questions. Good luck.

  • Bitcoin and Litecoin have different inner workings, so many of their parts shouldn't be interchangeable. That's not really true. They're vastly similar.
    – Nick ODell
    Feb 19, 2015 at 6:35
  • Similar doesn't mean equal or interchangeable.
    – hgfernan
    Feb 19, 2015 at 11:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.