5

In JavaScript SDK we have method isValidEd25519PublicKey for Stellar address validation. But in Java SDK there is no such method.

How can I validate Stellar address with Java SDK?

1 Answer 1

3

You can use StrKey.decodeStellarAccountId() wrapped with a try-catch block. If the expression throws an exception, the account id is invalid.

0

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.