public class AddressUtils
extends java.lang.Object
| Constructor and Description |
|---|
AddressUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
addressToScriptHash(java.lang.String address)
Transforms the given address into its script hash.
|
static boolean |
isValidAddress(java.lang.String address)
Checks whether the give address is valid or not.
|
static java.lang.String |
scriptHashToAddress(byte[] scriptHash)
Derives the Neo address from the given script hash.
|
public static boolean isValidAddress(java.lang.String address)
address - The address to be checked.public static byte[] addressToScriptHash(java.lang.String address)
address - The address.public static java.lang.String scriptHashToAddress(byte[] scriptHash)
The script hash needs to be in little-endian order.
scriptHash - The script hash to get the address for.