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<Address>
accounts
List<byte[]>
applicationArgs
(apaa) transaction specific arguments accessed from the application's approval-program and clear-state-program.Long
applicationId
(apid) ID of the application being configured or empty if creating.byte[]
approvalProgram
byte[]
clearStateProgram
Long
extraProgramPages
(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.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
accounts()
void
accounts(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()
void
applicationArgs(List<String> base64Encoded)
String
approvalProgram()
void
approvalProgram(String base64Encoded)
(apap) Logic executed for every application transaction, except when on-completion is set to "clear".String
clearStateProgram()
void
clearStateProgram(String base64Encoded)
(apsu) Logic executed for application transactions with on-completion set to "clear".boolean
equals(Object o)
-
Methods inherited from class com.algorand.algosdk.v2.client.common.PathResponse
toString
-
-
-
-
Field Detail
-
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
-
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
-
-
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()
-
-