Class PendingTransactionResponse
Details about a pending transaction. If the transaction was recently confirmed, includes confirmation details like the round and reward details.
Inheritance
Implements
Inherited Members
Namespace: Algorand.V2.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class PendingTransactionResponse : IEquatable<PendingTransactionResponse>, IValidatableObject
Constructors
| Improve this Doc View SourcePendingTransactionResponse()
Initializes a new instance of the PendingTransactionResponse class.
Declaration
[JsonConstructor]
protected PendingTransactionResponse()
PendingTransactionResponse(Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, String, Nullable<Int64>, Nullable<Int64>, List<AccountStateDelta>, StateDelta, Object)
Initializes a new instance of the PendingTransactionResponse class.
Declaration
public PendingTransactionResponse(long? assetIndex = default(long? ), long? applicationIndex = default(long? ), long? closeRewards = default(long? ), long? closingAmount = default(long? ), long? confirmedRound = default(long? ), string poolError = null, long? receiverRewards = default(long? ), long? senderRewards = default(long? ), List<AccountStateDelta> localStateDelta = null, StateDelta globalStateDelta = null, object txn = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int64> | assetIndex | The asset index if the transaction was found and it created an asset.. |
System.Nullable<System.Int64> | applicationIndex | The application index if the transaction was found and it created an application.. |
System.Nullable<System.Int64> | closeRewards | Rewards in microalgos applied to the close remainder to account.. |
System.Nullable<System.Int64> | closingAmount | Closing amount for the transaction.. |
System.Nullable<System.Int64> | confirmedRound | The round where this transaction was confirmed, if present.. |
System.String | poolError | Indicates that the transaction was kicked out of this node's transaction pool (and specifies why that happened). An empty string indicates the transaction wasn't kicked out of this node's txpool due to an error. (required). |
System.Nullable<System.Int64> | receiverRewards | Rewards in microalgos applied to the receiver account.. |
System.Nullable<System.Int64> | senderRewards | Rewards in microalgos applied to the sender account.. |
System.Collections.Generic.List<AccountStateDelta> | localStateDelta | \[ld\] Local state key/value changes for the application being executed by this transaction.. |
StateDelta | globalStateDelta | \[gd\] Global state key/value changes for the application being executed by this transaction.. |
System.Object | txn | The raw signed transaction. (required). |
Properties
| Improve this Doc View SourceApplicationIndex
The application index if the transaction was found and it created an application.
Declaration
[DataMember(Name = "application-index", EmitDefaultValue = false)]
public long? ApplicationIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | The application index if the transaction was found and it created an application. |
AssetIndex
The asset index if the transaction was found and it created an asset.
Declaration
[DataMember(Name = "asset-index", EmitDefaultValue = false)]
public long? AssetIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | The asset index if the transaction was found and it created an asset. |
CloseRewards
Rewards in microalgos applied to the close remainder to account.
Declaration
[DataMember(Name = "close-rewards", EmitDefaultValue = false)]
public long? CloseRewards { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | Rewards in microalgos applied to the close remainder to account. |
ClosingAmount
Closing amount for the transaction.
Declaration
[DataMember(Name = "closing-amount", EmitDefaultValue = false)]
public long? ClosingAmount { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | Closing amount for the transaction. |
ConfirmedRound
The round where this transaction was confirmed, if present.
Declaration
[DataMember(Name = "confirmed-round", EmitDefaultValue = false)]
public long? ConfirmedRound { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | The round where this transaction was confirmed, if present. |
GlobalStateDelta
\[gd\] Global state key/value changes for the application being executed by this transaction.
Declaration
[DataMember(Name = "global-state-delta", EmitDefaultValue = false)]
public StateDelta GlobalStateDelta { get; set; }
Property Value
Type | Description |
---|---|
StateDelta | \[gd\] Global state key/value changes for the application being executed by this transaction. |
LocalStateDelta
\[ld\] Local state key/value changes for the application being executed by this transaction.
Declaration
[DataMember(Name = "local-state-delta", EmitDefaultValue = false)]
public List<AccountStateDelta> LocalStateDelta { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<AccountStateDelta> | \[ld\] Local state key/value changes for the application being executed by this transaction. |
PoolError
Indicates that the transaction was kicked out of this node's transaction pool (and specifies why that happened). An empty string indicates the transaction wasn't kicked out of this node's txpool due to an error.
Declaration
[DataMember(Name = "pool-error", EmitDefaultValue = false)]
public string PoolError { get; set; }
Property Value
Type | Description |
---|---|
System.String | Indicates that the transaction was kicked out of this node's transaction pool (and specifies why that happened). An empty string indicates the transaction wasn't kicked out of this node's txpool due to an error. |
ReceiverRewards
Rewards in microalgos applied to the receiver account.
Declaration
[DataMember(Name = "receiver-rewards", EmitDefaultValue = false)]
public long? ReceiverRewards { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | Rewards in microalgos applied to the receiver account. |
SenderRewards
Rewards in microalgos applied to the sender account.
Declaration
[DataMember(Name = "sender-rewards", EmitDefaultValue = false)]
public long? SenderRewards { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | Rewards in microalgos applied to the sender account. |
Txn
The raw signed transaction.
Declaration
[DataMember(Name = "txn", EmitDefaultValue = false)]
public object Txn { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The raw signed transaction. |
Methods
| Improve this Doc View SourceEquals(PendingTransactionResponse)
Returns true if PendingTransactionResponse instances are equal
Declaration
public bool Equals(PendingTransactionResponse input)
Parameters
Type | Name | Description |
---|---|---|
PendingTransactionResponse | input | Instance of PendingTransactionResponse 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 |