Package org.xrpl.xrpl4j.codec.addresses
Interface ClassicAddress
- All Known Implementing Classes:
ImmutableClassicAddress
@Immutable
public interface ClassicAddress
An address on the XRP Ledger represented in Classic Address form. This form includes a Base58Check encoded
address, as well as a destination tag and an indicator of if the address is on XRPL-testnet or XRPL-mainnet.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()Get a newImmutableClassicAddress.Builderinstance.A classic address, as anAddress.com.google.common.primitives.UnsignedIntegertag()The tag of the classic address.booleantest()Whether or not this address exists on mainnet or testnet.
-
Method Details
-
builder
Get a newImmutableClassicAddress.Builderinstance.- Returns:
- A
ImmutableClassicAddress.Builder.
-
classicAddress
Address classicAddress()A classic address, as anAddress.- Returns:
- An
Addresscontaining the classic address.
-
tag
com.google.common.primitives.UnsignedInteger tag()The tag of the classic address.- Returns:
- An
UnsignedInteger.
-
test
boolean test()Whether or not this address exists on mainnet or testnet.- Returns:
trueif it is a tesnet address,falseif it is mainnet.
-