Skip to content

How to generate and parse address

Dylan edited this page Nov 15, 2019 · 2 revisions

AddressGenerator and AddressParser

Java SDK provides AddressGenerator and AddressParser to generate and parse address.

You can generate address with lock script which includes code hash and args (public key blake160 hash as a default) and get AddressParseResult to parse address which includes lock script, network (mainnet and testnet) and type (short and full address).

You can verify your own address generating and parsing code with address test (AddressGeneratorTest and AddressParserTest)

Clone this wiki locally