Package org.xrpl.xrpl4j.wallet
Interface Wallet
-
- All Known Implementing Classes:
ImmutableWallet
@Immutable public interface Wallet
Represents an Account on the XRP Ledger, otherwise known as a Wallet.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description static ImmutableWallet.Builder
builder()
Builder immutable wallet .Address
classicAddress()
The XRPL address of this wallet, in the Classic Address form.boolean
isTest()
Whether or not this wallet is on XRPL testnet or mainnet.Optional<String>
privateKey()
Deprecated.This method will be removed in a future version.String
publicKey()
The public key of the wallet, encoded in hexadecimal.XAddress
xAddress()
The XRPL address of this wallet, in the X-Address form.
-
-
-
Method Detail
-
builder
static ImmutableWallet.Builder builder()
Builder immutable wallet . builder.- Returns:
- the immutable wallet . builder
-
privateKey
@Deprecated Optional<String> privateKey()
Deprecated.This method will be removed in a future version. Consider storing private keys in an associated instance of TransactionSigner.The private key of the wallet, encoded in hexadecimal.- Returns:
- An optionally present
String
containing a private key.
-
publicKey
String publicKey()
The public key of the wallet, encoded in hexadecimal.- Returns:
- A
String
containing a public key.
-
classicAddress
Address classicAddress()
The XRPL address of this wallet, in the Classic Address form.- Returns:
- The classic
Address
of this wallet.
-
xAddress
XAddress xAddress()
The XRPL address of this wallet, in the X-Address form.- Returns:
- An
XAddress
containing the X-Address of this wallet.
-
isTest
boolean isTest()
Whether or not this wallet is on XRPL testnet or mainnet.- Returns:
- A boolean indicating if this is a testnet or mainnet wallet.
-
-