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:
- "https://xrpl.org/accounts.html#addresses"
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ImmutableClassicAddress.Builder
builder()
Get a newImmutableClassicAddress.Builder
instance.Address
classicAddress()
A classic address, as anAddress
.com.google.common.primitives.UnsignedInteger
tag()
The tag of the classic address.boolean
test()
Whether or not this address exists on mainnet or testnet.
-
-
-
Method Detail
-
builder
static ImmutableClassicAddress.Builder builder()
Get a newImmutableClassicAddress.Builder
instance.- Returns:
- A
ImmutableClassicAddress.Builder
.
-
classicAddress
Address classicAddress()
A classic address, as anAddress
.- Returns:
- An
Address
containing 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:
true
if it is a tesnet address,false
if it is mainnet.
-
-