Class TransactionApplication

java.lang.Object
com.algorand.algosdk.v2.client.common.PathResponse
com.algorand.algosdk.v2.client.model.TransactionApplication

public class TransactionApplication
extends PathResponse
Fields for application transactions. Definition: data/transactions/application.go : ApplicationCallTxnFields
  • Field Summary

    Fields
    Modifier and Type Field Description
    java.util.List<Address> accounts  
    java.util.List<byte[]> applicationArgs
    (apaa) transaction specific arguments accessed from the application's approval-program and clear-state-program.
    java.lang.Long applicationId
    (apid) ID of the application being configured or empty if creating.
    byte[] approvalProgram  
    byte[] clearStateProgram  
    java.lang.Long extraProgramPages
    (epp) specifies the additional app program len requested in pages.
    java.util.List<java.lang.Long> foreignApps
    (apfa) Lists the applications in addition to the application-id whose global states may be accessed by this application's approval-program and clear-state-program.
    java.util.List<java.lang.Long> foreignAssets
    (apas) lists the assets whose parameters may be accessed by this application's ApprovalProgram and ClearStateProgram.
    StateSchema globalStateSchema
    Represents a (apls) local-state or (apgs) global-state schema.
    StateSchema localStateSchema
    Represents a (apls) local-state or (apgs) global-state schema.
    Enums.OnCompletion onCompletion
    (apan) defines the what additional actions occur with the transaction.
  • Constructor Summary

    Constructors
    Constructor Description
    TransactionApplication()  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<java.lang.String> accounts()  
    void accounts​(java.util.List<java.lang.String> accounts)
    (apat) List of accounts in addition to the sender that may be accessed from the application's approval-program and clear-state-program.
    java.util.List<java.lang.String> applicationArgs()  
    void applicationArgs​(java.util.List<java.lang.String> base64Encoded)  
    java.lang.String approvalProgram()  
    void approvalProgram​(java.lang.String base64Encoded)
    (apap) Logic executed for every application transaction, except when on-completion is set to "clear".
    java.lang.String clearStateProgram()  
    void clearStateProgram​(java.lang.String base64Encoded)
    (apsu) Logic executed for application transactions with on-completion set to "clear".
    boolean equals​(java.lang.Object o)  

    Methods inherited from class com.algorand.algosdk.v2.client.common.PathResponse

    toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • accounts

      public java.util.List<Address> accounts
    • applicationArgs

      public java.util.List<byte[]> applicationArgs
      (apaa) transaction specific arguments accessed from the application's approval-program and clear-state-program.
    • applicationId

      public java.lang.Long applicationId
      (apid) ID of the application being configured or empty if creating.
    • approvalProgram

      public byte[] approvalProgram
    • clearStateProgram

      public byte[] clearStateProgram
    • extraProgramPages

      public java.lang.Long extraProgramPages
      (epp) specifies the additional app program len requested in pages.
    • foreignApps

      public java.util.List<java.lang.Long> foreignApps
      (apfa) Lists the applications in addition to the application-id whose global states may be accessed by this application's approval-program and clear-state-program. The access is read-only.
    • foreignAssets

      public java.util.List<java.lang.Long> foreignAssets
      (apas) lists the assets whose parameters may be accessed by this application's ApprovalProgram and ClearStateProgram. The access is read-only.
    • globalStateSchema

      public StateSchema globalStateSchema
      Represents a (apls) local-state or (apgs) global-state schema. These schemas determine how much storage may be used in a local-state or global-state for an application. The more space used, the larger minimum balance must be maintained in the account holding the data.
    • localStateSchema

      public StateSchema localStateSchema
      Represents a (apls) local-state or (apgs) global-state schema. These schemas determine how much storage may be used in a local-state or global-state for an application. The more space used, the larger minimum balance must be maintained in the account holding the data.
    • onCompletion

      public Enums.OnCompletion onCompletion
      (apan) defines the what additional actions occur with the transaction. Valid types: noop optin closeout clear update update delete
  • Constructor Details

    • TransactionApplication

      public TransactionApplication()
  • Method Details

    • accounts

      public void accounts​(java.util.List<java.lang.String> accounts) throws java.security.NoSuchAlgorithmException
      (apat) List of accounts in addition to the sender that may be accessed from the application's approval-program and clear-state-program.
      Throws:
      java.security.NoSuchAlgorithmException
    • accounts

      public java.util.List<java.lang.String> accounts() throws java.security.NoSuchAlgorithmException
      Throws:
      java.security.NoSuchAlgorithmException
    • applicationArgs

      public void applicationArgs​(java.util.List<java.lang.String> base64Encoded)
    • applicationArgs

      public java.util.List<java.lang.String> applicationArgs()
    • approvalProgram

      public void approvalProgram​(java.lang.String base64Encoded)
      (apap) Logic executed for every application transaction, except when on-completion is set to "clear". It can read and write global state for the application, as well as account-specific local state. Approval programs may reject the transaction.
    • approvalProgram

      public java.lang.String approvalProgram()
    • clearStateProgram

      public void clearStateProgram​(java.lang.String base64Encoded)
      (apsu) Logic executed for application transactions with on-completion set to "clear". It can read and write global state for the application, as well as account-specific local state. Clear state programs cannot reject the transaction.
    • clearStateProgram

      public java.lang.String clearStateProgram()
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object