Class AssetTransferTransactionBuilder<T extends AssetTransferTransactionBuilder<T>>


  • public class AssetTransferTransactionBuilder<T extends AssetTransferTransactionBuilder<T>>
    extends TransactionBuilder<T>
    Build an asset transfer transaction for sending some asset from an asset holder to another user. The asset receiver must have marked itself as willing to accept the asset. Required parameters: sender assetReceiver assetAmount assetIndex genesisHash Optional parameters: assetCloseTo Optional global parameters: fee/flatFee note genesisID group lease
    • Field Detail

      • assetReceiver

        protected Address assetReceiver
      • assetCloseTo

        protected Address assetCloseTo
    • Constructor Detail

      • AssetTransferTransactionBuilder

        protected AssetTransferTransactionBuilder()
    • Method Detail

      • 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 transfer from sender to assetReceiver.
        Parameters:
        assetAmount - The assetAmount.
        Returns:
        This builder.
      • assetAmount

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

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