Class TransactionPayment
Fields for a payment transaction. Definition: data/transactions/payment.go : PaymentTxnFields
Inheritance
Implements
Inherited Members
Namespace: Algorand.V2.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class TransactionPayment : IEquatable<TransactionPayment>, IValidatableObject
Constructors
| Improve this Doc View SourceTransactionPayment(Nullable<Int64>, Nullable<Int64>, String, String)
Initializes a new instance of the TransactionPayment class.
Declaration
public TransactionPayment(long? amount = default(long? ), long? closeAmount = default(long? ), string closeRemainderTo = null, string receiver = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int64> | amount | \[amt\] number of MicroAlgos intended to be transferred. (required). |
System.Nullable<System.Int64> | closeAmount | Number of MicroAlgos that were sent to the close-remainder-to address when closing the sender account.. |
System.String | closeRemainderTo | \[close\] when set, indicates that the sending account should be closed and all remaining funds be transferred to this address.. |
System.String | receiver | \[rcv\] receiver's address. (required). |
Properties
| Improve this Doc View SourceAmount
\[amt\] number of MicroAlgos intended to be transferred.
Declaration
[DataMember(Name = "amount", EmitDefaultValue = false)]
public long? Amount { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | \[amt\] number of MicroAlgos intended to be transferred. |
CloseAmount
Number of MicroAlgos that were sent to the close-remainder-to address when closing the sender account.
Declaration
[DataMember(Name = "close-amount", EmitDefaultValue = false)]
public long? CloseAmount { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | Number of MicroAlgos that were sent to the close-remainder-to address when closing the sender account. |
CloseRemainderTo
\[close\] when set, indicates that the sending account should be closed and all remaining funds be transferred to this address.
Declaration
[DataMember(Name = "close-remainder-to", EmitDefaultValue = false)]
public string CloseRemainderTo { get; set; }
Property Value
Type | Description |
---|---|
System.String | \[close\] when set, indicates that the sending account should be closed and all remaining funds be transferred to this address. |
Receiver
\[rcv\] receiver's address.
Declaration
[DataMember(Name = "receiver", EmitDefaultValue = false)]
public string Receiver { get; set; }
Property Value
Type | Description |
---|---|
System.String | \[rcv\] receiver's address. |
Methods
| Improve this Doc View SourceEquals(TransactionPayment)
Returns true if TransactionPayment instances are equal
Declaration
public bool Equals(TransactionPayment input)
Parameters
Type | Name | Description |
---|---|---|
TransactionPayment | input | Instance of TransactionPayment 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 |