Class PeriodicPayment

java.lang.Object
com.algorand.algosdk.templates.PeriodicPayment

@Deprecated
public class PeriodicPayment
extends java.lang.Object
Deprecated.
  • Constructor Summary

    Constructors
    Constructor Description
    PeriodicPayment()
    Deprecated.
     
  • Method Summary

    Modifier and Type Method Description
    static ContractTemplate MakePeriodicPayment​(Address receiver, int amount, int withdrawingWindow, int period, int fee, int expiryRound)
    Deprecated.
    PeriodicPayment contract enables creating an account which allows the withdrawal of a fixed amount of assets every fixed number of rounds to a specific Algrorand Address.
    protected static ContractTemplate MakePeriodicPayment​(Address receiver, int amount, int withdrawingWindow, int period, int fee, int expiryRound, Lease lease)
    Deprecated.
    Need a way to specify the lease for testing.
    static SignedTransaction MakeWithdrawalTransaction​(ContractTemplate contract, int firstValid, Digest genesisHash, int feePerByte)
    Deprecated.
    Return the withdrawal transaction to be sent to the network.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PeriodicPayment

      public PeriodicPayment()
      Deprecated.
  • Method Details

    • MakePeriodicPayment

      public static ContractTemplate MakePeriodicPayment​(Address receiver, int amount, int withdrawingWindow, int period, int fee, int expiryRound) throws java.security.NoSuchAlgorithmException
      Deprecated.
      PeriodicPayment contract enables creating an account which allows the withdrawal of a fixed amount of assets every fixed number of rounds to a specific Algrorand Address. In addition, the contract allows to add an expiryRound, after which the address can withdraw the rest of the assets.
      Parameters:
      receiver - address to receive the assets.
      amount - amount of assets to transfer at every cycle.
      withdrawingWindow - the number of blocks in which the user can withdraw the asset once the period start (must be < 1000).
      period - how often the address can withdraw assets (in rounds).
      fee - maximum fee per transaction.
      expiryRound - a round in which the receiver can withdraw the rest of the funds after.
      Returns:
      PeriodicPayment contract.
      Throws:
      java.security.NoSuchAlgorithmException
    • MakePeriodicPayment

      protected static ContractTemplate MakePeriodicPayment​(Address receiver, int amount, int withdrawingWindow, int period, int fee, int expiryRound, Lease lease) throws java.security.NoSuchAlgorithmException
      Deprecated.
      Need a way to specify the lease for testing.
      Throws:
      java.security.NoSuchAlgorithmException
    • MakeWithdrawalTransaction

      public static SignedTransaction MakeWithdrawalTransaction​(ContractTemplate contract, int firstValid, Digest genesisHash, int feePerByte) throws java.io.IOException, java.security.NoSuchAlgorithmException
      Deprecated.
      Return the withdrawal transaction to be sent to the network.
      Parameters:
      contract - contract containing information, this should be provided by the payer.
      firstValid - first round the transaction should be valid.
      genesisHash - genesis hash in base64.
      feePerByte - fee per byte to apply to transaction.
      Returns:
      Signed withdrawal transaction.
      Throws:
      java.io.IOException
      java.security.NoSuchAlgorithmException