Package org.xrpl.xrpl4j.codec.addresses
Interface DecodedXAddress
- All Known Implementing Classes:
ImmutableDecodedXAddress
@Immutable
public interface DecodedXAddress
An X-Address, decoded into an AccountID, destination tag, and a boolean for testnet or mainnet.
Note that the AccountID in this decoded X-Address is not Base58 encoded.
-
Method Summary
Modifier and TypeMethodDescriptionThe Account ID of the X-Address.builder()
Get a newImmutableDecodedXAddress.Builder
instance.com.google.common.primitives.UnsignedInteger
tag()
The tag of the X-Address.boolean
test()
Whether or not this address exists on mainnet or testnet.
-
Method Details
-
builder
Get a newImmutableDecodedXAddress.Builder
instance.- Returns:
- A
ImmutableDecodedXAddress.Builder
.
-
accountId
UnsignedByteArray accountId()The Account ID of the X-Address.- Returns:
- An
UnsignedByteArray
containing the Account ID.
-
tag
com.google.common.primitives.UnsignedInteger tag()The tag of the X-Address.- Returns:
- An
UnsignedInteger
representing the tag.
-
test
boolean test()Whether or not this address exists on mainnet or testnet.- Returns:
true
if it is a tesnet address,false
if it is mainnet.
-