public class TronAddress extends Object implements Comparable
Modifier and Type | Field and Description |
---|---|
static int |
HEX_ADDRESS_LENGTH |
static String |
HEX_PREFIX |
Constructor and Description |
---|
TronAddress(byte[] bytes)
Creates a new instance of TronAddress.
|
TronAddress(String address)
Creates a new instance of TronAddress
|
public static final String HEX_PREFIX
public static final int HEX_ADDRESS_LENGTH
public TronAddress(byte[] bytes)
bytes
- The address as an array of bytes.public TronAddress(String address)
address
- The address as a base-58 string.public String toBase58()
public byte[] getBytes()
public int compareTo(Object o)
compareTo
in interface Comparable
Copyright © 2020. All rights reserved.