Package org.xrpl.xrpl4j.wallet
Interface WalletFactory
-
- All Known Implementing Classes:
DefaultWalletFactory
public interface WalletFactory
Interface for constructing XRPL wallets.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Wallet
fromKeyPair(KeyPair keyPair, boolean isTest)
Wallet
fromSeed(String seed, boolean isTest)
Generate aWallet
from a Base58Check encoded seed value.SeedWalletGenerationResult
randomWallet(boolean isTest)
Generate aWallet
by generating a random seed and deriving the public/private keys and XRPL address from it.
-
-
-
Method Detail
-
randomWallet
SeedWalletGenerationResult randomWallet(boolean isTest)
Generate aWallet
by generating a random seed and deriving the public/private keys and XRPL address from it.- Parameters:
isTest
- A boolean requesting either a testnet wallet (iftrue
) or a mainnet wallet (iffalse
).- Returns:
- A
SeedWalletGenerationResult
, which contains the seed that was generated, as well as theWallet
.
-
fromSeed
Wallet fromSeed(String seed, boolean isTest)
Generate aWallet
from a Base58Check encoded seed value.- Parameters:
seed
- A Base58Check encoded 16 byte seed value.isTest
- A boolean indicating either a testnet wallet (iftrue
) or a mainnet wallet (iffalse
).- Returns:
- The
Wallet
derived from the seed.
-
-