Package org.xrpl.xrpl4j.wallet
Interface WalletFactory
- All Known Implementing Classes:
DefaultWalletFactory
public interface WalletFactory
Interface for constructing XRPL wallets.
-
Method Summary
Modifier and TypeMethodDescriptionfromKeyPair
(KeyPair keyPair, boolean isTest) Generate aWallet
from a Base58Check encoded seed value.randomWallet
(boolean isTest) Generate aWallet
by generating a random seed and deriving the public/private keys and XRPL address from it.
-
Method Details
-
randomWallet
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
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.
-
fromKeyPair
-