Class Wallet


  • public class Wallet
    extends java.lang.Object
    Wallet 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
      Account derive​(int coin_type, int account_index)
      Derive an account from the master node by give HD path
      static Wallet from_mnemonic​(java.lang.String words)  
      static Wallet from_mnemonic​(java.lang.String mnemonic, java.lang.String passphrase)  
      static Wallet from_mnemonic​(java.util.List<java.lang.String> words)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Wallet

        public Wallet()
    • 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_type
        account_index - account_index
        Returns:
        Account with the derived node