How to get hash160 address in string using bitcoinj ,I tried the following code

NetworkParameters params = TestNet3Params.get();
String ads = "n1XZMMm3ikh97Mr8JVnnahfugad2DRcVrB";
Address address = new Address(params, ads);
byte[] adshas160 = address.getHash160();

all I'm getting is [B@4c762604


To get the hash in a human readable version, I advice you to use a class that'll do it for you:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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