Class AssetFreezeTransactionBuilder<T extends AssetFreezeTransactionBuilder<T>>


  • public class AssetFreezeTransactionBuilder<T extends AssetFreezeTransactionBuilder<T>>
    extends TransactionBuilder<T>
    Build an asset freeze transaction. Required parameters: assetIndex freezeTarget freezeState genesisHash Optional global parameters fee/flatFee note genesisID group lease
    • Field Detail

      • freezeTarget

        protected Address freezeTarget
      • freezeState

        protected boolean freezeState
    • Constructor Detail

      • AssetFreezeTransactionBuilder

        protected AssetFreezeTransactionBuilder()
    • Method Detail

      • freezeTarget

        public T freezeTarget​(Address freezeTarget)
        Set the freezeTarget account. This is the account that will be frozen or thawed.
        Parameters:
        freezeTarget - The freezeTarget account.
        Returns:
        this builder.
      • freezeTarget

        public T freezeTarget​(String freezeTarget)
        Set the freezeTarget account in the human-readable address format. This is the account that will be frozen or thawed.
        Parameters:
        freezeTarget - The freezeTarget account.
        Returns:
        this builder.
      • freezeTarget

        public T freezeTarget​(byte[] freezeTarget)
        Set the freezeTarget account in the raw 32 byte format. This is the account that will be frozen or thawed.
        Parameters:
        freezeTarget - The freezeTarget account.
        Returns:
        this builder.
      • assetIndex

        public T assetIndex​(BigInteger assetIndex)
        Set the assetIndex.
        Parameters:
        assetIndex - The assetIndex.
        Returns:
        This builder.
      • assetIndex

        public T assetIndex​(Integer assetIndex)
        Set the assetIndex.
        Parameters:
        assetIndex - The assetIndex.
        Returns:
        This builder.
      • assetIndex

        public T assetIndex​(Long assetIndex)
        Set the assetIndex.
        Parameters:
        assetIndex - The assetIndex.
        Returns:
        This builder.
      • freezeState

        public T freezeState​(boolean freezeState)
        Set the freezeState of the freezeTarget account.
        Parameters:
        freezeState - The freezeState.
        Returns:
        This builder.