Class AccountType


  • public final class AccountType
    extends java.lang.Object
    Account type, 'STANDARD', 'COMPATIBILITY' or 'SEGWIT'.

    Only relevant for Bitcoin accounts. All other accounts are 'STANDARD' account type.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String COMPATIBILITY
      Corresponds to compatibilty Bitcoin account P2WPKH-nested-in-P2SH.
      static java.lang.String SEGWIT
      Corresponds to Segregated Witness Bitcoin account type P2WPKH and are also reffered to as bech32 addresses.
      static java.lang.String STANDARD
      Corresponds to standard Ethereum account type and Bitcoin non-segwit account type P2PKH.
    • Constructor Summary

      Constructors 
      Constructor Description
      AccountType()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • STANDARD

        public static final java.lang.String STANDARD
        Corresponds to standard Ethereum account type and Bitcoin non-segwit account type P2PKH.

        Standard Bitcoin addresses always begin with 1 on Bitcoin Mainnet and m or n on Bitcoin Testnet.

        See Also:
        Constant Field Values
      • COMPATIBILITY

        public static final java.lang.String COMPATIBILITY
        Corresponds to compatibilty Bitcoin account P2WPKH-nested-in-P2SH.

        These addresses always begin with 3 on Bitcoin Mainnet and 2 on Bitcoin Testnet.

        See Also:
        Constant Field Values
      • SEGWIT

        public static final java.lang.String SEGWIT
        Corresponds to Segregated Witness Bitcoin account type P2WPKH and are also reffered to as bech32 addresses.

        These addresses always begin with bc1 on Bitcoin Mainnet and tb1 on Bitcoin Testnet.

        See Also:
        Constant Field Values
    • Constructor Detail

      • AccountType

        public AccountType()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object