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
Modifier and TypeMethodDescriptionstatic ImmutableWallet.Builder
builder()
Builder immutable wallet .The XRPL address of this wallet, in the Classic Address form.boolean
isTest()
Whether or not this wallet is on XRPL testnet or mainnet.Deprecated.This method will be removed in a future version.The public key of the wallet, encoded in hexadecimal.xAddress()
The XRPL address of this wallet, in the X-Address form.
-
Method Details
-
builder
Builder immutable wallet . builder.- Returns:
- the immutable wallet . builder
-
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.
-