Class TransactionApplication
Fields for application transactions. Definition: data/transactions/application.go : ApplicationCallTxnFields
Inheritance
Implements
Inherited Members
Namespace: Algorand.V2.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class TransactionApplication : IEquatable<TransactionApplication>, IValidatableObject
Constructors
| Improve this Doc View SourceTransactionApplication(List<String>, List<String>, Nullable<Int64>, Byte[], Byte[], List<Nullable<Int32>>, List<Nullable<Int32>>, StateSchema, StateSchema, OnCompletion)
Initializes a new instance of the TransactionApplication class.
Declaration
public TransactionApplication(List<string> accounts = null, List<string> applicationArgs = null, long? applicationId = default(long? ), byte[] approvalProgram = null, byte[] clearStateProgram = null, List<int?> foreignApps = null, List<int?> foreignAssets = null, StateSchema globalStateSchema = null, StateSchema localStateSchema = null, OnCompletion onCompletion = OnCompletion.Noop)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.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.. |
System.Collections.Generic.List<System.String> | applicationArgs | \[apaa\] transaction specific arguments accessed from the application's approval-program and clear-state-program.. |
System.Nullable<System.Int64> | applicationId | \[apid\] ID of the application being configured or empty if creating. (required). |
System.Byte[] | approvalProgram | \[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.. |
System.Byte[] | clearStateProgram | \[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.. |
System.Collections.Generic.List<System.Nullable<System.Int32>> | 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.. |
System.Collections.Generic.List<System.Nullable<System.Int32>> | foreignAssets | \[apas\] lists the assets whose parameters may be accessed by this application's ApprovalProgram and ClearStateProgram. The access is read-only.. |
StateSchema | globalStateSchema | globalStateSchema. |
StateSchema | localStateSchema | localStateSchema. |
OnCompletion | onCompletion | onCompletion (required). |
Properties
| Improve this Doc View SourceAccounts
\[apat\] List of accounts in addition to the sender that may be accessed from the application's approval-program and clear-state-program.
Declaration
[DataMember(Name = "accounts", EmitDefaultValue = false)]
public List<string> Accounts { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> | \[apat\] List of accounts in addition to the sender that may be accessed from the application's approval-program and clear-state-program. |
ApplicationArgs
\[apaa\] transaction specific arguments accessed from the application's approval-program and clear-state-program.
Declaration
[DataMember(Name = "application-args", EmitDefaultValue = false)]
public List<string> ApplicationArgs { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> | \[apaa\] transaction specific arguments accessed from the application's approval-program and clear-state-program. |
ApplicationId
\[apid\] ID of the application being configured or empty if creating.
Declaration
[DataMember(Name = "application-id", EmitDefaultValue = false)]
public long? ApplicationId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | \[apid\] ID of the application being configured or empty if creating. |
ApprovalProgram
\[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.
Declaration
[DataMember(Name = "approval-program", EmitDefaultValue = false)]
public byte[] ApprovalProgram { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] | \[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. |
ClearStateProgram
\[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.
Declaration
[DataMember(Name = "clear-state-program", EmitDefaultValue = false)]
public byte[] ClearStateProgram { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] | \[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. |
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.
Declaration
[DataMember(Name = "foreign-apps", EmitDefaultValue = false)]
public List<int?> ForeignApps { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Nullable<System.Int32>> | \[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
\[apas\] lists the assets whose parameters may be accessed by this application's ApprovalProgram and ClearStateProgram. The access is read-only.
Declaration
[DataMember(Name = "foreign-assets", EmitDefaultValue = false)]
public List<int?> ForeignAssets { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Nullable<System.Int32>> | \[apas\] lists the assets whose parameters may be accessed by this application's ApprovalProgram and ClearStateProgram. The access is read-only. |
GlobalStateSchema
Gets or Sets GlobalStateSchema
Declaration
[DataMember(Name = "global-state-schema", EmitDefaultValue = false)]
public StateSchema GlobalStateSchema { get; set; }
Property Value
Type | Description |
---|---|
StateSchema |
LocalStateSchema
Gets or Sets LocalStateSchema
Declaration
[DataMember(Name = "local-state-schema", EmitDefaultValue = false)]
public StateSchema LocalStateSchema { get; set; }
Property Value
Type | Description |
---|---|
StateSchema |
OnCompletion
Gets or Sets OnCompletion
Declaration
[DataMember(Name = "on-completion", EmitDefaultValue = false)]
public OnCompletion OnCompletion { get; set; }
Property Value
Type | Description |
---|---|
OnCompletion |
Methods
| Improve this Doc View SourceEquals(TransactionApplication)
Returns true if TransactionApplication instances are equal
Declaration
public bool Equals(TransactionApplication input)
Parameters
Type | Name | Description |
---|---|---|
TransactionApplication | input | Instance of TransactionApplication to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIValidatableObject.Validate(ValidationContext)
To validate all properties of the instance
Declaration
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.DataAnnotations.ValidationContext | validationContext | Validation context |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> | Validation Result |