Class AssetClawbackTransactionBuilder<T extends AssetClawbackTransactionBuilder<T>>


  • public class AssetClawbackTransactionBuilder<T extends AssetClawbackTransactionBuilder<T>>
    extends TransactionBuilder<T>
    Build an asset clawback transaction. These transactions allow the asset clawback account to take assets away from holders of the asset. This is a specialized form of an AssetConfig transaction which only succeeds when the sender is equal the clawback account address. Required parameters: sender assetClawbackFrom assetReceiver assetAmount genesisHash Optional parameters: assetCloseTo Optional global parameters: fee/flatFee note genesisID group lease
    • Field Detail

      • assetClawbackFrom

        protected Address assetClawbackFrom
      • assetReceiver

        protected Address assetReceiver
      • assetCloseTo

        protected Address assetCloseTo
    • Constructor Detail

      • AssetClawbackTransactionBuilder

        protected AssetClawbackTransactionBuilder()
    • Method Detail

      • assetClawbackFrom

        public T assetClawbackFrom​(Address assetClawbackFrom)
        Set the assetClawbackFrom account. This is the asset who will have assets removed from their account.
        Parameters:
        assetClawbackFrom - The assetClawbackFrom account.
        Returns:
        this builder.
      • assetClawbackFrom

        public T assetClawbackFrom​(String assetClawbackFrom)
        Set the assetClawbackFrom account. This is the asset who will have assets removed from their account.
        Parameters:
        assetClawbackFrom - The assetClawbackFrom account.
        Returns:
        this builder.
      • assetClawbackFrom

        public T assetClawbackFrom​(byte[] assetClawbackFrom)
        Set the assetClawbackFrom account. This is the asset who will have assets removed from their account.
        Parameters:
        assetClawbackFrom - The assetClawbackFrom account.
        Returns:
        this builder.
      • assetReceiver

        public T assetReceiver​(Address assetReceiver)
        Set the assetReceiver account. This is the account who will receive the funds.
        Parameters:
        assetReceiver - The assetReceiver account.
        Returns:
        this builder.
      • assetReceiver

        public T assetReceiver​(String assetReceiver)
        Set the assetReceiver account in the human-readable address format. This is the account who will receive the funds.
        Parameters:
        assetReceiver - The assetReceiver account.
        Returns:
        this builder.
      • assetReceiver

        public T assetReceiver​(byte[] assetReceiver)
        Set the assetReceiver account in the raw 32 byte format. This is the account who will receive the funds.
        Parameters:
        assetReceiver - The assetReceiver account.
        Returns:
        this builder.
      • assetCloseTo

        public T assetCloseTo​(Address assetCloseTo)
        Set the assetCloseTo account. If set this account will recieve any remaining balance after the assetAmount has been removed from the balance.
        Parameters:
        assetCloseTo - The assetCloseTo account.
        Returns:
        this builder.
      • assetCloseTo

        public T assetCloseTo​(String assetCloseTo)
        Set the assetCloseTo account in the human-readable address format. If set this account will recieve any remaining balance after the assetAmount has been removed from the balance.
        Parameters:
        assetCloseTo - The assetCloseTo account.
        Returns:
        this builder.
      • assetCloseTo

        public T assetCloseTo​(byte[] assetCloseTo)
        Set the assetCloseTo account in the raw 32 byte format. If set this account will recieve any remaining balance after the assetAmount has been removed from the balance.
        Parameters:
        assetCloseTo - The assetCloseTo 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.
      • assetAmount

        public T assetAmount​(BigInteger assetAmount)
        Set the assetAmount. The number of assets to clawback.
        Parameters:
        assetAmount - The assetAmount.
        Returns:
        This builder.
      • assetAmount

        public T assetAmount​(Integer assetAmount)
        Set the assetAmount. The number of assets to clawback.
        Parameters:
        assetAmount - The assetAmount.
        Returns:
        This builder.
      • assetAmount

        public T assetAmount​(Long assetAmount)
        Set the assetAmount. The number of assets to clawback.
        Parameters:
        assetAmount - The assetAmount.
        Returns:
        This builder.