Package org.nervos.muta.wallet
Class Wallet
- java.lang.Object
-
- org.nervos.muta.wallet.Wallet
-
public class Wallet extends java.lang.ObjectWallet handles mnemonic and derive job.
-
-
Constructor Summary
Constructors Constructor Description Wallet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Accountderive(int coin_type, int account_index)Derive an account from the master node by give HD pathstatic Walletfrom_mnemonic(java.lang.String words)static Walletfrom_mnemonic(java.lang.String mnemonic, java.lang.String passphrase)static Walletfrom_mnemonic(java.util.List<java.lang.String> words)
-
-
-
Method Detail
-
from_mnemonic
public static Wallet from_mnemonic(java.lang.String mnemonic, java.lang.String passphrase)
-
from_mnemonic
public static Wallet from_mnemonic(java.util.List<java.lang.String> words)
-
from_mnemonic
public static Wallet from_mnemonic(java.lang.String words)
-
derive
public Account derive(int coin_type, int account_index)
Derive an account from the master node by give HD path- Parameters:
coin_type- the coin_typeaccount_index- account_index- Returns:
- Account with the derived node
-
-