Class Transaction
Assembly: Algorand.dll
Syntax
[JsonConverter(typeof(JsonSubtypes), new object[] { "type" })]
[JsonSubtypes.KnownSubType(typeof(ApplicationCallTransaction), "appl")]
[JsonSubtypes.KnownSubType(typeof(KeyRegistrationTransaction), "keyreg")]
[JsonSubtypes.KnownSubType(typeof(PaymentTransaction), "pay")]
[JsonSubtypes.KnownSubType(typeof(AssetFreezeTransaction), "afrz")]
[JsonSubtypes.KnownSubType(typeof(AssetMovementsTransaction), "axfer")]
[JsonSubtypes.KnownSubType(typeof(AssetConfigurationTransaction), "acfg")]
[JsonSubtypes.KnownSubType(typeof(StateProofTransaction), "stpf")]
[JsonSubtypes.KnownSubType(typeof(HeartBeatTransaction), "hb")]
[MessagePackObject(false)]
[Union(0, typeof(ApplicationCallTransaction))]
[Union(1, typeof(KeyRegistrationTransaction))]
[Union(2, typeof(PaymentTransaction))]
[Union(3, typeof(AssetFreezeTransaction))]
[Union(4, typeof(AssetMovementsTransaction))]
[Union(5, typeof(AssetConfigurationTransaction))]
[Union(6, typeof(StateProofTransaction))]
[Union(7, typeof(HeartBeatTransaction))]
public abstract class Transaction : IReturnableTransaction
Properties
|
Edit this page
View Source
CloseRewards
Declaration
[JsonIgnore]
[IgnoreMember]
public ulong? CloseRewards { get; }
Property Value
|
Edit this page
View Source
Committed
Declaration
[JsonIgnore]
[IgnoreMember]
public bool Committed { get; }
Property Value
|
Edit this page
View Source
ConfirmedRound
Declaration
[JsonIgnore]
[IgnoreMember]
public ulong? ConfirmedRound { get; }
Property Value
|
Edit this page
View Source
Fee
Declaration
[JsonProperty("fee", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
[Key("fee")]
public ulong Fee { get; set; }
Property Value
|
Edit this page
View Source
FirstValid
Declaration
[JsonProperty("fv", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
[Key("fv")]
public ulong FirstValid { get; set; }
Property Value
|
Edit this page
View Source
GenesisHash
Declaration
[JsonProperty("gh", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
[Key("gh")]
public Digest GenesisHash { get; set; }
Property Value
|
Edit this page
View Source
GenesisId
Declaration
[JsonProperty("gen", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
[Key("gen")]
public string GenesisId { get; set; }
Property Value
|
Edit this page
View Source
Group
Declaration
[JsonProperty("grp", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
[Key("grp")]
public Digest Group { get; set; }
Property Value
|
Edit this page
View Source
LastValid
Declaration
[JsonProperty("lv", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
[Key("lv")]
public ulong LastValid { get; set; }
Property Value
|
Edit this page
View Source
Lease
Declaration
[JsonProperty("lx", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
[Key("lx")]
public byte[] Lease { get; set; }
Property Value
|
Edit this page
View Source
Note
Declaration
[JsonProperty("note", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
[Key("note")]
public byte[] Note { get; set; }
Property Value
|
Edit this page
View Source
PoolError
Declaration
[JsonIgnore]
[IgnoreMember]
public string PoolError { get; }
Property Value
|
Edit this page
View Source
ReceiverRewards
Declaration
[JsonIgnore]
[IgnoreMember]
public ulong? ReceiverRewards { get; }
Property Value
|
Edit this page
View Source
RekeyTo
Declaration
[JsonProperty("rekey", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
[Key("rekey")]
public Address RekeyTo { get; set; }
Property Value
|
Edit this page
View Source
Sender
Declaration
[JsonProperty("snd", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
[Key("snd")]
public Address Sender { get; set; }
Property Value
|
Edit this page
View Source
SenderRewards
Declaration
[JsonIgnore]
[IgnoreMember]
public ulong? SenderRewards { get; }
Property Value
Methods
|
Edit this page
View Source
BytesToSign()
Return encoded representation of the transaction with a prefix
suitable for signing
Declaration
public byte[] BytesToSign()
Returns
|
Edit this page
View Source
EstimatedEncodedSize()
Declaration
public int EstimatedEncodedSize()
Returns
|
Edit this page
View Source
FromBase64String(string)
Decode unsigned transaction from base64 string
Declaration
public static Transaction FromBase64String(string b64)
Parameters
| Type |
Name |
Description |
| string |
b64 |
Base64 encoded string
|
Returns
|
Edit this page
View Source
RawTxID()
Return transaction ID as Digest
Declaration
Returns
|
Edit this page
View Source
SetFee(ulong)
Declaration
public void SetFee(ulong fee)
Parameters
| Type |
Name |
Description |
| ulong |
fee |
|
|
Edit this page
View Source
SetFeeByFeePerByte(ulong?)
Sets the transaction fee according to suggestedFeePerByte * estimateTxSize.
Declaration
public void SetFeeByFeePerByte(ulong? suggestedFeePerByte)
Parameters
| Type |
Name |
Description |
| ulong? |
suggestedFeePerByte |
suggestedFee given by network
|
|
Edit this page
View Source
ShouldSerializeFee()
Declaration
public bool ShouldSerializeFee()
Returns
|
Edit this page
View Source
ShouldSerializeFirstValid()
Declaration
public bool ShouldSerializeFirstValid()
Returns
|
Edit this page
View Source
ShouldSerializeGenesisId()
Declaration
public bool ShouldSerializeGenesisId()
Returns
|
Edit this page
View Source
ShouldSerializeLastValid()
Declaration
public bool ShouldSerializeLastValid()
Returns
|
Edit this page
View Source
ShouldSerializeLease()
Declaration
public bool ShouldSerializeLease()
Returns
|
Edit this page
View Source
ShouldSerializeNote()
Declaration
public bool ShouldSerializeNote()
Returns
|
Edit this page
View Source
Sign(Account)
Declaration
public SignedTransaction Sign(Account signingAccount)
Parameters
| Type |
Name |
Description |
| Account |
signingAccount |
|
Returns
|
Edit this page
View Source
Sign(LogicsigSignature)
Declaration
public SignedTransaction Sign(LogicsigSignature lsig)
Parameters
Returns
|
Edit this page
View Source
Sign(MultisigAddress, Account)
Declaration
public SignedTransaction Sign(MultisigAddress from, Account signingAccount)
Parameters
Returns
|
Edit this page
View Source
Sign(ulong, Account)
Sign a transaction with this account, replacing the fee with the given feePerByte.
Declaration
public SignedTransaction Sign(ulong feePerByte, Account signingAccount)
Parameters
| Type |
Name |
Description |
| ulong |
feePerByte |
feePerByte fee per byte, often returned as a suggested fee
|
| Account |
signingAccount |
|
Returns
|
Edit this page
View Source
TxID()
Return transaction ID as string
Declaration
Returns
Implements
Extension Methods