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 Type
    Method
    Description
    Builder immutable wallet .
    The XRPL address of this wallet, in the Classic Address form.
    boolean
    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.
    The XRPL address of this wallet, in the X-Address form.
  • Method Details

    • 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.