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 List<ResourceRef>access(al) Access unifies `accounts`, `foreign-apps`, `foreign-assets`, and `box-references` under a single list.List<Address>accountsList<byte[]>applicationArgs(apaa) transaction specific arguments accessed from the application's approval-program and clear-state-program.LongapplicationId(apid) ID of the application being configured or empty if creating.byte[]approvalProgramList<BoxReference>boxReferences(apbx) the boxes that can be accessed by this transaction (and others in the same group).byte[]clearStateProgramLongextraProgramPages(epp) specifies the additional app program len requested in pages.List<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.List<Long>foreignAssets(apas) lists the assets whose parameters may be accessed by this application's ApprovalProgram and ClearStateProgram.StateSchemaglobalStateSchemaRepresents a (apls) local-state or (apgs) global-state schema.StateSchemalocalStateSchemaRepresents a (apls) local-state or (apgs) global-state schema.Enums.OnCompletiononCompletion(apan) defines the what additional actions occur with the transaction.LongrejectVersion(aprv) the lowest application version for which this transaction should immediately fail.
-
Constructor Summary
Constructors Constructor Description TransactionApplication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>accounts()voidaccounts(List<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.List<String>applicationArgs()voidapplicationArgs(List<String> base64Encoded)StringapprovalProgram()voidapprovalProgram(String base64Encoded)(apap) Logic executed for every application transaction, except when on-completion is set to "clear".StringclearStateProgram()voidclearStateProgram(String base64Encoded)(apsu) Logic executed for application transactions with on-completion set to "clear".booleanequals(Object o)-
Methods inherited from class com.algorand.algosdk.v2.client.common.PathResponse
toString
-
-
-
-
Field Detail
-
access
public List<ResourceRef> access
(al) Access unifies `accounts`, `foreign-apps`, `foreign-assets`, and `box-references` under a single list. If access is non-empty, these lists must be empty. If access is empty, those lists may be non-empty.
-
applicationArgs
public List<byte[]> applicationArgs
(apaa) transaction specific arguments accessed from the application's approval-program and clear-state-program.
-
applicationId
public Long applicationId
(apid) ID of the application being configured or empty if creating.
-
approvalProgram
public byte[] approvalProgram
-
boxReferences
public List<BoxReference> boxReferences
(apbx) the boxes that can be accessed by this transaction (and others in the same group).
-
clearStateProgram
public byte[] clearStateProgram
-
extraProgramPages
public Long extraProgramPages
(epp) specifies the additional app program len requested in pages.
-
foreignApps
public List<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 List<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
-
rejectVersion
public Long rejectVersion
(aprv) the lowest application version for which this transaction should immediately fail. 0 indicates that no version check should be performed.
-
-
Method Detail
-
accounts
public void accounts(List<String> accounts) throws 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:
NoSuchAlgorithmException
-
accounts
public List<String> accounts() throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
approvalProgram
public void approvalProgram(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 String approvalProgram()
-
clearStateProgram
public void clearStateProgram(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 String clearStateProgram()
-
-