Class PaymentTransactionType
PaymentTransactionType contains the additional fields for a payment Transaction
Inheritance
Implements
Inherited Members
Namespace: Algorand.Algod.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class PaymentTransactionType : IEquatable<PaymentTransactionType>, IValidatableObject
Constructors
| Improve this Doc View SourcePaymentTransactionType(Nullable<UInt64>, String, Nullable<UInt64>, Nullable<UInt64>, String, Nullable<UInt64>)
Initializes a new instance of the PaymentTransactionType class.
Declaration
public PaymentTransactionType(ulong? amount = default(ulong? ), string close = null, ulong? closeamount = default(ulong? ), ulong? closerewards = default(ulong? ), string to = null, ulong? torewards = default(ulong? ))
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.UInt64> | amount | Amount is the amount of MicroAlgos intended to be transferred (required). |
System.String | close | CloseRemainderTo is the address the sender closed to. |
System.Nullable<System.UInt64> | closeamount | CloseAmount is the amount sent to CloseRemainderTo, for committed transaction. |
System.Nullable<System.UInt64> | closerewards | CloseRewards is the amount of pending rewards applied to the CloseRemainderTo account as part of this transaction.. |
System.String | to | To is the receiver's address (required). |
System.Nullable<System.UInt64> | torewards | ToRewards is the amount of pending rewards applied to the To account as part of this transaction.. |
Properties
| Improve this Doc View SourceAmount
Amount is the amount of MicroAlgos intended to be transferred
Declaration
[DataMember(Name = "amount", EmitDefaultValue = false)]
public ulong? Amount { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | Amount is the amount of MicroAlgos intended to be transferred |
Close
CloseRemainderTo is the address the sender closed to
Declaration
[DataMember(Name = "close", EmitDefaultValue = false)]
public string Close { get; set; }
Property Value
Type | Description |
---|---|
System.String | CloseRemainderTo is the address the sender closed to |
Closeamount
CloseAmount is the amount sent to CloseRemainderTo, for committed transaction
Declaration
[DataMember(Name = "closeamount", EmitDefaultValue = false)]
public ulong? Closeamount { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | CloseAmount is the amount sent to CloseRemainderTo, for committed transaction |
Closerewards
CloseRewards is the amount of pending rewards applied to the CloseRemainderTo account as part of this transaction.
Declaration
[DataMember(Name = "closerewards", EmitDefaultValue = false)]
public ulong? Closerewards { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | CloseRewards is the amount of pending rewards applied to the CloseRemainderTo account as part of this transaction. |
To
To is the receiver's address
Declaration
[DataMember(Name = "to", EmitDefaultValue = false)]
public string To { get; set; }
Property Value
Type | Description |
---|---|
System.String | To is the receiver's address |
Torewards
ToRewards is the amount of pending rewards applied to the To account as part of this transaction.
Declaration
[DataMember(Name = "torewards", EmitDefaultValue = false)]
public ulong? Torewards { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | ToRewards is the amount of pending rewards applied to the To account as part of this transaction. |
Methods
| Improve this Doc View SourceEquals(PaymentTransactionType)
Returns true if PaymentTransactionType instances are equal
Declaration
public bool Equals(PaymentTransactionType input)
Parameters
Type | Name | Description |
---|---|---|
PaymentTransactionType | input | Instance of PaymentTransactionType 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 |