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.Builderinstance.com.google.common.primitives.UnsignedIntegertag()The tag of the X-Address.booleantest()Whether or not this address exists on mainnet or testnet.
-
Method Details
-
builder
Get a newImmutableDecodedXAddress.Builderinstance.- Returns:
- A
ImmutableDecodedXAddress.Builder.
-
accountId
UnsignedByteArray accountId()The Account ID of the X-Address.- Returns:
- An
UnsignedByteArraycontaining the Account ID.
-
tag
com.google.common.primitives.UnsignedInteger tag()The tag of the X-Address.- Returns:
- An
UnsignedIntegerrepresenting the tag.
-
test
boolean test()Whether or not this address exists on mainnet or testnet.- Returns:
trueif it is a tesnet address,falseif it is mainnet.
-