Class Address


  • public class Address
    extends Object
    Address
    • Constructor Detail

      • Address

        public Address​(String address)
    • Method Detail

      • isInvoiceAddress

        public boolean isInvoiceAddress()

        Is it an invoice address?

        Invoice address
        Returns:
        .
      • isP2pkhAddress

        public boolean isP2pkhAddress()

        Is it a pay-to-pubkey-hash address?

        Pay-to-PubkeyHash
        Returns:
        .
      • isP2shAddress

        public boolean isP2shAddress()

        Is it a pay-to-script-hash address?

        Pay to script hash
        Returns:
        .
      • isBech32Address

        public boolean isBech32Address()

        Is it a bech32 address?

        Bech32
        Returns:
        .
      • hash160

        public byte[] hash160()
      • electrumScripthash

        public String electrumScripthash()
        https://electrumx-spesmilo.readthedocs.io/en/latest/protocol-basics.html#script-hashes
      • getAddressString

        public String getAddressString()
      • getChange

        public int getChange()
      • setChange

        public void setChange​(int change)
      • getAddressIndex

        public int getAddressIndex()
      • setAddressIndex

        public void setAddressIndex​(int addressIndex)
      • getHistoryCount

        public int getHistoryCount()
      • setHistoryCount

        public void setHistoryCount​(int historyCount)
      • getBalance

        public long getBalance()
      • setBalance

        public void setBalance​(long balance)