Class PaymentTransaction
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Algorand.Algod.Model.Transactions
Assembly: Algorand.dll
Syntax
public class PaymentTransaction : Transaction, IReturnableTransaction
Constructors
| Improve this Doc View SourcePaymentTransaction()
Declaration
public PaymentTransaction()
PaymentTransaction(Address, Address, ulong?, string, ulong, ulong?, string, string)
Flat Fee Payment Transaction
Declaration
public PaymentTransaction(Address from, Address to, ulong? amount, string message, ulong flatFee, ulong? lastRound, string genesisId, string genesishashb64)
Parameters
Type | Name | Description |
---|---|---|
Address | from | |
Address | to | |
ulong? | amount | |
string | message | |
ulong | flatFee | |
ulong? | lastRound | |
string | genesisId | |
string | genesishashb64 |
Properties
| Improve this Doc View SourceAmount
Declaration
[JsonProperty("amt", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public ulong? Amount { get; set; }
Property Value
Type | Description |
---|---|
ulong? |
CloseRemainderTo
Declaration
[JsonProperty("close", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public Address CloseRemainderTo { get; set; }
Property Value
Type | Description |
---|---|
Address |
ClosingAmount
Declaration
[JsonIgnore]
public ulong? ClosingAmount { get; }
Property Value
Type | Description |
---|---|
ulong? |
Receiver
Declaration
[JsonProperty("rcv", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public Address Receiver { get; set; }
Property Value
Type | Description |
---|---|
Address |
type
Declaration
[JsonProperty(PropertyName = "type")]
public string type { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Improve this Doc View SourceGetPaymentTransactionFromNetworkTransactionParameters(Address, Address, ulong, string, TransactionParametersResponse)
Get a payment transaction
Declaration
public static PaymentTransaction GetPaymentTransactionFromNetworkTransactionParameters(Address from, Address to, ulong amount, string message, TransactionParametersResponse trans)
Parameters
Type | Name | Description |
---|---|---|
Address | from | from address |
Address | to | to address |
ulong | amount | amount(Unit:MicroAlgo) |
string | message | message |
TransactionParametersResponse | trans | Transaction Params(use AlgodApi.TransactionParams() function to get the params) |
Returns
Type | Description |
---|---|
PaymentTransaction | payment transaction |
GetPaymentTransactionWithSuggestedFee(Address, Address, ulong, string, ulong, ulong, string, string)
Get a payment transaction with the fee set to a suggested fee per txn size
Declaration
public static PaymentTransaction GetPaymentTransactionWithSuggestedFee(Address from, Address to, ulong amount, string message, ulong suggestedFeePerByte, ulong lastRound, string genesisId, string genesishashb64)
Parameters
Type | Name | Description |
---|---|---|
Address | from | |
Address | to | |
ulong | amount | |
string | message | |
ulong | suggestedFeePerByte | |
ulong | lastRound | |
string | genesisId | |
string | genesishashb64 |
Returns
Type | Description |
---|---|
PaymentTransaction |