Class DryrunRequest
Request data type for dryrun endpoint. Given the Transactions and simulated ledger state upload, run TEAL scripts and return debugging information.
Inheritance
Implements
Inherited Members
Namespace: Algorand.V2.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class DryrunRequest : IEquatable<DryrunRequest>, IValidatableObject
Constructors
| Improve this Doc View SourceDryrunRequest()
Initializes a new instance of the DryrunRequest class.
Declaration
[JsonConstructor]
protected DryrunRequest()
DryrunRequest(List<SignedTransaction>, List<Account>, List<Application>, String, Nullable<UInt64>, Nullable<Int64>, List<DryrunSource>)
Initializes a new instance of the DryrunRequest class.
Declaration
public DryrunRequest(List<SignedTransaction> txns = null, List<Account> accounts = null, List<Application> apps = null, string protocolVersion = null, ulong? round = default(ulong? ), long? latestTimestamp = default(long? ), List<DryrunSource> sources = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<SignedTransaction> | txns | txns (required). |
System.Collections.Generic.List<Account> | accounts | accounts (required). |
System.Collections.Generic.List<Application> | apps | apps (required). |
System.String | protocolVersion | ProtocolVersion specifies a specific version string to operate under, otherwise whatever the current protocol of the network this algod is running in. (required). |
System.Nullable<System.UInt64> | round | Round is available to some TEAL scripts. Defaults to the current round on the network this algod is attached to. (required). |
System.Nullable<System.Int64> | latestTimestamp | LatestTimestamp is available to some TEAL scripts. Defaults to the latest confirmed timestamp this algod is attached to. (required). |
System.Collections.Generic.List<DryrunSource> | sources | sources (required). |
Properties
| Improve this Doc View SourceAccounts
Gets or Sets Accounts
Declaration
[DataMember(Name = "accounts", EmitDefaultValue = false)]
public List<Account> Accounts { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Account> |
Apps
Gets or Sets Apps
Declaration
[DataMember(Name = "apps", EmitDefaultValue = false)]
public List<Application> Apps { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Application> |
LatestTimestamp
LatestTimestamp is available to some TEAL scripts. Defaults to the latest confirmed timestamp this algod is attached to.
Declaration
[DataMember(Name = "latest-timestamp", EmitDefaultValue = false)]
public long? LatestTimestamp { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | LatestTimestamp is available to some TEAL scripts. Defaults to the latest confirmed timestamp this algod is attached to. |
ProtocolVersion
ProtocolVersion specifies a specific version string to operate under, otherwise whatever the current protocol of the network this algod is running in.
Declaration
[DataMember(Name = "protocol-version", EmitDefaultValue = false)]
public string ProtocolVersion { get; set; }
Property Value
Type | Description |
---|---|
System.String | ProtocolVersion specifies a specific version string to operate under, otherwise whatever the current protocol of the network this algod is running in. |
Round
Round is available to some TEAL scripts. Defaults to the current round on the network this algod is attached to.
Declaration
[DataMember(Name = "round", EmitDefaultValue = false)]
public ulong? Round { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | Round is available to some TEAL scripts. Defaults to the current round on the network this algod is attached to. |
Sources
Gets or Sets Sources
Declaration
[DataMember(Name = "sources", EmitDefaultValue = false)]
public List<DryrunSource> Sources { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<DryrunSource> |
Txns
Gets or Sets Txns
Declaration
[DataMember(Name = "txns", EmitDefaultValue = false)]
public List<SignedTransaction> Txns { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<SignedTransaction> |
Methods
| Improve this Doc View SourceEquals(DryrunRequest)
Returns true if DryrunRequest instances are equal
Declaration
public bool Equals(DryrunRequest input)
Parameters
Type | Name | Description |
---|---|---|
DryrunRequest | input | Instance of DryrunRequest 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 |