Class PaymentTransactionBuilder<T extends PaymentTransactionBuilder<T>>


  • public class PaymentTransactionBuilder<T extends PaymentTransactionBuilder<T>>
    extends TransactionBuilder<T>
    Build a payment transaction. Required parameters: sender receiver amount genesisHash Optional parameters: closeRemainderTo Optional global parameters: fee/flatFee note genesisID group lease
    • Field Detail

      • receiver

        protected Address receiver
      • closeRemainderTo

        protected Address closeRemainderTo
    • Constructor Detail

      • PaymentTransactionBuilder

        protected PaymentTransactionBuilder()
    • Method Detail

      • amount

        public T amount​(BigInteger amount)
        Set the number of microalgos to transfer from sender to receiver.
        Parameters:
        amount - The number of microalgos to transfer.
        Returns:
        This builder.
      • amount

        public T amount​(Integer amount)
        Set the number of microalgos to transfer from sender to receiver.
        Parameters:
        amount - The number of microalgos to transfer.
        Returns:
        This builder.
      • amount

        public T amount​(Long amount)
        Set the number of microalgos to transfer from sender to receiver.
        Parameters:
        amount - The number of microalgos to transfer.
        Returns:
        This builder.
      • receiver

        public T receiver​(Address receiver)
        Set the receiver of the payment.
        Parameters:
        receiver - The receiver.
        Returns:
        This builder.
      • receiver

        public T receiver​(String receiver)
        Set the receiver of the payment in the human-readable address format.
        Parameters:
        receiver - The receiver.
        Returns:
        This builder.
      • receiver

        public T receiver​(byte[] receiver)
        Set the receiver of the payment in the raw 32 byte format.
        Parameters:
        receiver - The receiver.
        Returns:
        This builder.
      • closeRemainderTo

        public T closeRemainderTo​(Address closeRemainderTo)
        Set the closeRemainderTo account. This account will receive any remaining balance in the sender account after the amount has been removed.
        Parameters:
        closeRemainderTo - The closeRemainderTo account.
        Returns:
        This builder.
      • closeRemainderTo

        public T closeRemainderTo​(String closeRemainderTo)
        Set the closeRemainderTo account in the human-readable address format. This account will receive any remaining balance in the sender account after the amount has been removed.
        Parameters:
        closeRemainderTo - The closeRemainderTo account.
        Returns:
        This builder.
      • closeRemainderTo

        public T closeRemainderTo​(byte[] closeRemainderTo)
        Set the closeRemainderTo account in the raw 32 byte format. This account will receive any remaining balance in the sender account after the amount has been removed.
        Parameters:
        closeRemainderTo - The closeRemainderTo account.
        Returns:
        This builder.