• Api Documentation
Show / Hide Table of Contents
  • Algorand
    • Address
    • ApiException
    • ApiException<TResult>
    • Digest
    • HttpClientConfigurator
    • LogicsigSignature
    • MultisigAddress
    • MultisigSignature
    • MultisigSubsig
    • ParticipationPublicKey
    • Signature
    • TEALProgram
    • TxGroup
    • VRFPublicKey
  • Algorand.Algod
    • DefaultApi
    • DefaultApi.ObjectResponseResult<T>
    • IDefaultApi
  • Algorand.Algod.Model
    • Account
    • AccountApplicationResponse
    • AccountAssetResponse
    • AccountBalanceRecord
    • AccountDeltas
    • AccountParticipation
    • AccountSigType
    • AccountStateDelta
    • AccountTotals
    • Application
    • ApplicationLocalState
    • ApplicationParams
    • ApplicationStateSchema
    • AppResourceRecord
    • Asset
    • AssetHolding
    • AssetParams
    • AssetResourceRecord
    • Block
    • BlockHashResponse
    • Box
    • BoxDescriptor
    • BoxesResponse
    • BuildVersion
    • CertifiedBlock
    • CompileResponse
    • DisassembleResponse
    • DryrunRequest
    • DryrunResponse
    • DryrunSource
    • DryrunState
    • DryrunTxnResult
    • ErrorResponse
    • EvalDelta
    • EvalDeltaKeyValue
    • FileParameter
    • Format
    • GetSyncRoundResponse
    • KvDelta
    • LedgerStateDelta
    • LightBlockHeaderProof
    • ModifiedApp
    • ModifiedAsset
    • NodeStatusResponse
    • ParticipationKey
    • PendingTransactions
    • PostTransactionsResponse
    • ProofResponse
    • SimulateResponse
    • SimulateTransactionGroupResult
    • SimulateTransactionResult
    • StateDelta
    • StateProof
    • StateProofMessage
    • SupplyResponse
    • TealKeyValue
    • TealValue
    • TransactionParametersResponse
    • TransactionProofResponse
    • TxLease
    • Version
  • Algorand.Algod.Model.Transactions
    • ApplicationCallTransaction
    • ApplicationClearStateTransaction
    • ApplicationCloseOutTransaction
    • ApplicationCreateTransaction
    • ApplicationDeleteTransaction
    • ApplicationNoopTransaction
    • ApplicationOptInTransaction
    • ApplicationUpdateTransaction
    • AssetAcceptTransaction
    • AssetChangeTransaction
    • AssetClawbackTransaction
    • AssetConfigurationTransaction
    • AssetCreateTransaction
    • AssetDestroyTransaction
    • AssetFreezeTransaction
    • AssetMovementsTransaction
    • AssetTransferTransaction
    • AssetUpdateTransaction
    • IReturnableTransaction
    • KeyRegisterOfflineTransaction
    • KeyRegisterOnlineTransaction
    • KeyRegistrationTransaction
    • OnCompletion
    • PaymentTransaction
    • SignedTransaction
    • StateSchema
    • Transaction
  • Algorand.Algod.Test
    • TestHttpMessageHandler
  • Algorand.Crypto
    • KeyPair
  • Algorand.Indexer
    • CommonApi
    • CommonApi.ObjectResponseResult<T>
    • ICommonApi
    • ILookupApi
    • ISearchApi
    • LookupApi
    • LookupApi.ObjectResponseResult<T>
    • SearchApi
    • SearchApi.ObjectResponseResult<T>
  • Algorand.Indexer.Model
    • Account
    • AccountParticipation
    • AccountResponse
    • AccountsResponse
    • AccountStateDelta
    • Application
    • ApplicationLocalState
    • ApplicationLocalStatesResponse
    • ApplicationLogData
    • ApplicationLogsResponse
    • ApplicationParams
    • ApplicationResponse
    • ApplicationsResponse
    • ApplicationStateSchema
    • Asset
    • AssetBalancesResponse
    • AssetHolding
    • AssetHoldingsResponse
    • AssetParams
    • AssetResponse
    • AssetsResponse
    • Block
    • BlockRewards
    • BlockUpgradeState
    • BlockUpgradeVote
    • ErrorResponse
    • EvalDelta
    • EvalDeltaKeyValue
    • HealthCheck
    • MiniAssetHolding
    • StateSchema
    • TealKeyValue
    • TealValue
    • Transaction
    • TransactionApplication
    • TransactionAssetConfig
    • TransactionAssetFreeze
    • TransactionAssetTransfer
    • TransactionKeyreg
    • TransactionPayment
    • TransactionResponse
    • TransactionSignature
    • TransactionSignatureLogicsig
    • TransactionSignatureMultisig
    • TransactionSignatureMultisigSubsignature
    • TransactionsResponse
  • Algorand.KMD
    • Api
    • Api.ObjectResponseResult<T>
    • ApiException
    • ApiException<TResult>
    • APIV1DELETEKeyResponse
    • APIV1DELETEMultisigResponse
    • APIV1GETWalletsResponse
    • APIV1POSTKeyExportResponse
    • APIV1POSTKeyImportResponse
    • APIV1POSTKeyListResponse
    • APIV1POSTKeyResponse
    • APIV1POSTMasterKeyExportResponse
    • APIV1POSTMultisigExportResponse
    • APIV1POSTMultisigImportResponse
    • APIV1POSTMultisigListResponse
    • APIV1POSTMultisigProgramSignResponse
    • APIV1POSTMultisigTransactionSignResponse
    • APIV1POSTProgramSignResponse
    • APIV1POSTTransactionSignResponse
    • APIV1POSTWalletInfoResponse
    • APIV1POSTWalletInitResponse
    • APIV1POSTWalletReleaseResponse
    • APIV1POSTWalletRenameResponse
    • APIV1POSTWalletRenewResponse
    • APIV1POSTWalletResponse
    • APIV1Wallet
    • APIV1WalletHandle
    • CreateWalletRequest
    • DeleteKeyRequest
    • DeleteMultisigRequest
    • ExportKeyRequest
    • ExportMasterKeyRequest
    • ExportMultisigRequest
    • GenerateKeyRequest
    • IApi
    • ImportKeyRequest
    • ImportMultisigRequest
    • InitWalletHandleTokenRequest
    • ListKeysRequest
    • ListMultisigRequest
    • MultisigSig
    • MultisigSubsig
    • ReleaseWalletHandleTokenRequest
    • RenameWalletRequest
    • RenewWalletHandleTokenRequest
    • SignMultisigRequest
    • SignProgramMultisigRequest
    • SignProgramRequest
    • SignTransactionRequest
    • VersionsResponse
    • WalletInfoRequest
  • Algorand.Utils
    • ByteConstBlock
    • BytesConverter
    • Digester
    • Encoder
    • IntConstBlock
    • Logic
    • Logic.Uvarint
    • Mnemonic
    • MultisigAddressConverter
    • OrderedContractResolver
    • ProgramData
    • ReturnedTransactionConverter
    • Utils
    • VarintResult
    • Wordlist
  • Algorand.Utils.Crypto
    • FixedSecureRandom

Class Transaction

Inheritance
object
Transaction
ApplicationCallTransaction
AssetConfigurationTransaction
AssetFreezeTransaction
AssetMovementsTransaction
KeyRegistrationTransaction
PaymentTransaction
Implements
IReturnableTransaction
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
[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")]
public abstract class Transaction : IReturnableTransaction

Properties

| Improve this Doc View Source

CloseRewards

Declaration
[JsonIgnore]
public ulong? CloseRewards { get; }
Property Value
Type Description
ulong?
| Improve this Doc View Source

Committed

Declaration
[JsonIgnore]
public bool Committed { get; }
Property Value
Type Description
bool
| Improve this Doc View Source

ConfirmedRound

Declaration
[JsonIgnore]
public ulong? ConfirmedRound { get; }
Property Value
Type Description
ulong?
| Improve this Doc View Source

Fee

Declaration
[JsonProperty("fee", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public ulong? Fee { get; set; }
Property Value
Type Description
ulong?
| Improve this Doc View Source

FirstValid

Declaration
[JsonProperty("fv", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public ulong? FirstValid { get; set; }
Property Value
Type Description
ulong?
| Improve this Doc View Source

GenesisHash

Declaration
[JsonProperty("gh", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public Digest GenesisHash { get; set; }
Property Value
Type Description
Digest
| Improve this Doc View Source

GenesisId

Declaration
[JsonProperty("gen", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public string GenesisId { get; set; }
Property Value
Type Description
string
| Improve this Doc View Source

Group

Declaration
[JsonProperty("grp", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public Digest Group { get; set; }
Property Value
Type Description
Digest
| Improve this Doc View Source

LastValid

Declaration
[JsonProperty("lv", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public ulong? LastValid { get; set; }
Property Value
Type Description
ulong?
| Improve this Doc View Source

Lease

Declaration
[JsonProperty("lx", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public byte[] Lease { get; set; }
Property Value
Type Description
byte[]
| Improve this Doc View Source

Note

Declaration
[JsonProperty("note", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public byte[] Note { get; set; }
Property Value
Type Description
byte[]
| Improve this Doc View Source

PoolError

Declaration
[JsonIgnore]
public string PoolError { get; }
Property Value
Type Description
string
| Improve this Doc View Source

ReceiverRewards

Declaration
[JsonIgnore]
public ulong? ReceiverRewards { get; }
Property Value
Type Description
ulong?
| Improve this Doc View Source

RekeyTo

Declaration
[JsonProperty("rekey", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public Address RekeyTo { get; set; }
Property Value
Type Description
Address
| Improve this Doc View Source

Sender

Declaration
[JsonProperty("snd", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public Address Sender { get; set; }
Property Value
Type Description
Address
| Improve this Doc View Source

SenderRewards

Declaration
[JsonIgnore]
public ulong? SenderRewards { get; }
Property Value
Type Description
ulong?

Methods

| Improve this Doc View Source

BytesToSign()

Return encoded representation of the transaction with a prefix suitable for signing

Declaration
public byte[] BytesToSign()
Returns
Type Description
byte[]
| Improve this Doc View Source

EstimatedEncodedSize()

Declaration
public int EstimatedEncodedSize()
Returns
Type Description
int
| Improve this Doc View Source

RawTxID()

Return transaction ID as Digest

Declaration
public Digest RawTxID()
Returns
Type Description
Digest
| Improve this Doc View Source

SetFee(ulong)

Declaration
public void SetFee(ulong fee)
Parameters
Type Name Description
ulong fee
| Improve this Doc 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

| Improve this Doc View Source

ShouldSerializeGenesisId()

Declaration
public bool ShouldSerializeGenesisId()
Returns
Type Description
bool
| Improve this Doc View Source

ShouldSerializeLease()

Declaration
public bool ShouldSerializeLease()
Returns
Type Description
bool
| Improve this Doc View Source

ShouldSerializeNote()

Declaration
public bool ShouldSerializeNote()
Returns
Type Description
bool
| Improve this Doc View Source

Sign(Account)

Declaration
public SignedTransaction Sign(Account signingAccount)
Parameters
Type Name Description
Account signingAccount
Returns
Type Description
SignedTransaction
| Improve this Doc View Source

Sign(LogicsigSignature)

Declaration
public SignedTransaction Sign(LogicsigSignature lsig)
Parameters
Type Name Description
LogicsigSignature lsig
Returns
Type Description
SignedTransaction
| Improve this Doc View Source

Sign(MultisigAddress, Account)

Declaration
public SignedTransaction Sign(MultisigAddress from, Account signingAccount)
Parameters
Type Name Description
MultisigAddress from
Account signingAccount
Returns
Type Description
SignedTransaction
| Improve this Doc 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
Type Description
SignedTransaction

a signed transaction

| Improve this Doc View Source

TxID()

Return transaction ID as string

Declaration
public string TxID()
Returns
Type Description
string

Implements

IReturnableTransaction
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾