Show / Hide Table of Contents

    Class TransactionApplication

    Fields for application transactions. Definition: data/transactions/application.go : ApplicationCallTxnFields

    Inheritance
    System.Object
    TransactionApplication
    Implements
    System.IEquatable<TransactionApplication>
    System.ComponentModel.DataAnnotations.IValidatableObject
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Algorand.V2.Model
    Assembly: Algorand.dll
    Syntax
    [DataContract]
    public class TransactionApplication : IEquatable<TransactionApplication>, IValidatableObject

    Constructors

    | Improve this Doc View Source

    TransactionApplication(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 &quot;clear&quot;. 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 &quot;clear&quot;. 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 Source

    Accounts

    \[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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    ApprovalProgram

    \[apap\] Logic executed for every application transaction, except when on-completion is set to &quot;clear&quot;. 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 &quot;clear&quot;. It can read and write global state for the application, as well as account-specific local state. Approval programs may reject the transaction.

    | Improve this Doc View Source

    ClearStateProgram

    \[apsu\] Logic executed for application transactions with on-completion set to &quot;clear&quot;. 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 &quot;clear&quot;. It can read and write global state for the application, as well as account-specific local state. Clear state programs cannot reject the transaction.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    GlobalStateSchema

    Gets or Sets GlobalStateSchema

    Declaration
    [DataMember(Name = "global-state-schema", EmitDefaultValue = false)]
    public StateSchema GlobalStateSchema { get; set; }
    Property Value
    Type Description
    StateSchema
    | Improve this Doc View Source

    LocalStateSchema

    Gets or Sets LocalStateSchema

    Declaration
    [DataMember(Name = "local-state-schema", EmitDefaultValue = false)]
    public StateSchema LocalStateSchema { get; set; }
    Property Value
    Type Description
    StateSchema
    | Improve this Doc View Source

    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 Source

    Equals(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

    | Improve this Doc View Source

    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
    System.Object.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    Hash code

    Overrides
    System.Object.GetHashCode()
    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    String presentation of the object

    Overrides
    System.Object.ToString()

    Explicit Interface Implementations

    | Improve this Doc View Source

    IValidatableObject.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

    Implements

    System.IEquatable<T>
    System.ComponentModel.DataAnnotations.IValidatableObject
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX