• Api Documentation
Show / Hide Table of Contents
  • AVM.ClientGenerator
    • ClientGeneratorAnalyzer
    • ProxyBase
    • ProxyException
    • SignatureBase
  • AVM.ClientGenerator.ABI.ARC32
    • AbiMethodDefaultArgument
    • AppDescription
    • AppDescriptionConverter
    • ArgumentDefaultSource
    • CallConfig
    • CallConfigSpec
    • ConstantDefaultArgument
    • DefaultArgumentConverter
    • DefaultArgumentSpec
    • HintSpec
    • StateDefaultArgument
    • StateDescription
    • StorageElement
    • StorageSection
  • AVM.ClientGenerator.ABI.ARC4
    • ArgumentDescription
    • ContractDescription
    • MethodDescription
    • NetworkAppId
    • ReturnTypeDescription
  • AVM.ClientGenerator.ABI.ARC4.Types
    • Address
    • Application
    • Asset
    • Bool
    • Byte
    • FixedArray<T>
    • String
    • StructArray<T>
    • Tuple
    • UFixed
    • UInt
    • UInt128
    • UInt16
    • UInt24
    • UInt256
    • UInt32
    • UInt48
    • UInt512
    • UInt64
    • VariableArray<T>
    • WireType
  • AVM.ClientGenerator.ABI.ARC56
    • AppDescriptionArc56
    • BareActions
    • CompilerInfo
    • CompilerVersion
    • ContractState
    • DefaultValue
    • Event
    • EventArgument
    • Method
    • MethodActions
    • MethodArgument
    • MethodReturn
    • NetworkInfo
    • ProgramSource
    • ProgramSourceInfo
    • RecommendationBox
    • Recommendations
    • Schema
    • SchemaValues
    • ScratchVariable
    • SourceInfo
    • SourceInfoArgument
    • StorageKey
    • StorageMap
    • StructField
    • TemplateVariable
  • AVM.ClientGenerator.Clients
    • ContractUtilities
    • ProxyException
    • ProxyGenerator
    • SmartSignatureUtilities
  • AVM.ClientGenerator.Compiler
    • TealTypeUtils
    • Utilities
  • AVM.ClientGenerator.Core
    • AccountReference
    • AppCall
    • AppCallTransactionReference
    • AssetAccept
    • AssetClawback
    • AssetClawbackTransactionReference
    • AssetConfiguration
    • AssetConfigurationTransactionReference
    • AssetFreeze
    • AssetFreezeTransactionReference
    • AssetReference
    • AssetTransfer
    • AssetTransferTransactionReference
    • BigIntegerExtensions
    • ByteArrayExtensions
    • Constants
    • IAlgorandCommonPredefineds
    • ICompiledContract
    • ICompiledSignature
    • ISmartContractPredefineds
    • ISmartSignaturePredefineds
    • InnerTransaction
    • IntegerExtensions
    • IntentionallyNotImplementedException
    • KeyRegistration
    • KeyRegistrationTransactionReference
    • OnCompleteType
    • Payment
    • PaymentTransactionReference
    • SmartContract
    • SmartContractLibrary
    • SmartContractReference
    • SmartSignature
    • StorageType
    • StringExtensions
    • TransactionReference
    • VariableType
  • AVM.ClientGenerator.Core.Attributes
    • ABIFixedSizeAttribute
    • ABIStructAttribute
    • ABITypeDecoratorAttribute
    • InnerTransactionCallAttribute
    • SmartContractMethodAttribute
    • SmartSignatureMethodAttribute
    • StorageAttribute
  • AVM.ClientGenerator.Optimisers
    • CompiledLine
    • ICompilerMemento
    • IOptimiser
  • Algorand
    • Address
    • ApiException
    • ApiException<TResult>
    • Digest
    • HttpClientConfigurator
    • LogicsigSignature
    • MultisigAddress
    • MultisigSignature
    • MultisigSubsig
    • ParticipationPublicKey
    • Signature
    • TEALProgram
    • TxGroup
    • VRFPublicKey
  • Algorand.AVM.ClientGenerator.ABI.ARC32
    • SourceDescription
  • Algorand.AVM.ClientGenerator.ABI.ARC56
    • AVMObjectType
    • ClientGeneratorARC56
  • Algorand.AVM.ClientGenerator.Extensions
    • StringExtensions
  • Algorand.Algod
    • AlgodClient
    • AlgodConfiguration
    • DefaultApi
    • DefaultApi.ObjectResponseResult<T>
    • FundAccount
    • IAlgodClient
    • IDefaultApi
  • Algorand.Algod.Model
    • Account
    • AccountApplicationResource
    • AccountApplicationResponse
    • AccountApplicationsInformationResponse
    • AccountAssetHolding
    • AccountAssetResponse
    • AccountAssetsInformationResponse
    • AccountBalanceRecord
    • AccountDeltas
    • AccountParticipation
    • AccountSigType
    • AccountStateDelta
    • AccountTotals
    • AppCallLogs
    • AppResourceRecord
    • Application
    • ApplicationInitialStates
    • ApplicationKVStorage
    • ApplicationLocalReference
    • ApplicationLocalState
    • ApplicationParams
    • ApplicationStateOperation
    • ApplicationStateSchema
    • Asset
    • AssetHolding
    • AssetHoldingReference
    • AssetParams
    • AssetResourceRecord
    • AvmKeyValue
    • AvmValue
    • Block
    • BlockCert
    • BlockCertProp
    • BlockCertVote
    • BlockCertVoteCred
    • BlockCertVoteSig
    • BlockHashConverter
    • BlockHashResponse
    • BlockHeaderResponse
    • BlockLogsResponse
    • BlockTxidsResponse
    • Box
    • BoxDescriptor
    • BoxRef
    • BoxReference
    • BoxesResponse
    • BuildVersion
    • CertifiedBlock
    • CompileResponse
    • DisassembleResponse
    • DryrunRequest
    • DryrunResponse
    • DryrunSource
    • DryrunState
    • DryrunTxnResult
    • ErrorResponse
    • EvalDelta
    • EvalDeltaKeyValue
    • FileParameter
    • Format
    • Genesis
    • GenesisAllocation
    • GetBlockTimeStampOffsetResponse
    • GetSyncRoundResponse
    • HeartBeat
    • KvDelta
    • LedgerStateDelta
    • LedgerStateDeltaForTransactionGroup
    • LightBlockHeaderProof
    • ModifiedApp
    • ModifiedAsset
    • NodeStatusResponse
    • ParticipationKey
    • PendingTransactions
    • PostTransactionsResponse
    • ProofResponse
    • ReturnedTransaction
    • ScratchChange
    • SimulateInitialStates
    • SimulateRequest
    • SimulateRequestTransactionGroup
    • SimulateResponse
    • SimulateTraceConfig
    • SimulateTransactionGroupResult
    • SimulateTransactionResult
    • SimulateUnnamedResourcesAccessed
    • SimulationEvalOverrides
    • SimulationOpcodeTraceUnit
    • SimulationTransactionExecTrace
    • StateDelta
    • StateProof
    • StateProofMessage
    • StateProofTrackingData
    • SupplyResponse
    • TealKeyValue
    • TealValue
    • TransactionGroupLedgerStateDeltasForRoundResponse
    • TransactionParametersResponse
    • TransactionProofResponse
    • TxLease
    • Version
  • Algorand.Algod.Model.Agreement
    • ProposalValue
    • RawVote
    • Vote
  • Algorand.Algod.Model.Converters.Json
    • BlockCertVoteSigConverterJson
    • ParticipationPublicKeyConverterJson
    • UlongDictionaryConverterJson<T>
    • VRFPublicKeyConverterJson
    • ValueDeltaBytesConverterJson
  • Algorand.Algod.Model.Converters.MsgPack
    • AddressFormatterMsgPack
    • Deserializer
    • DigestFormatterMsgPack
    • NoDefaultsFormatter<T>
    • NullableStringFormatterMsgPack
    • ParticipationPublicKeyFormatterMsgPack
    • TEALProgramFormatterMsgPack
    • VRFPublicKeyFormatterMsgPack
    • ValueDeltaFormatterMsgPack
  • Algorand.Algod.Model.Exceptions
    • UnnamedResourceException
  • Algorand.Algod.Model.Transactions
    • ApplicationCallTransaction
    • ApplicationClearStateTransaction
    • ApplicationCloseOutTransaction
    • ApplicationCreateTransaction
    • ApplicationDeleteTransaction
    • ApplicationNoopTransaction
    • ApplicationOptInTransaction
    • ApplicationUpdateTransaction
    • AssetAcceptTransaction
    • AssetChangeTransaction
    • AssetClawbackTransaction
    • AssetCloseTransaction
    • AssetConfigurationTransaction
    • AssetCreateTransaction
    • AssetDestroyTransaction
    • AssetFreezeTransaction
    • AssetMovementsTransaction
    • AssetTransferTransaction
    • AssetUpdateTransaction
    • HeartBeatTransaction
    • IReturnableTransaction
    • KeyRegisterOfflineTransaction
    • KeyRegisterOnlineTransaction
    • KeyRegistrationTransaction
    • OnCompletion
    • PaymentTransaction
    • SignedTransaction
    • SignedTransactionDetail
    • StateProofTransaction
    • StateSchema
    • Transaction
    • TransactionsExtensions
    • ValueDelta
  • Algorand.Algod.Test
    • TestHttpMessageHandler
  • Algorand.Crypto
    • KeyPair
  • Algorand.Gossip
    • DnsSrvRecord
    • DnsSrvResolver
    • GossipHttpClient
    • GossipHttpConfiguration
    • GossipNetwork
    • GossipNodePurpose
    • GossipWebsocketClient
    • GossipWebsocketClient.AgreementVoteReceivedEventHandler
    • GossipWebsocketClient.MsgDigestSkipReceivedEventHandler
    • GossipWebsocketClient.MsgOfInterestReceivedEventHandler
    • GossipWebsocketClient.NetPrioResponseReceivedEventHandler
    • GossipWebsocketClient.PingReceivedEventHandler
    • GossipWebsocketClient.PingReplyReceivedEventHandler
    • GossipWebsocketClient.ProposalPayloadReceivedEventHandler
    • GossipWebsocketClient.StateProofSigReceivedEventHandler
    • GossipWebsocketClient.TopicMsgRespReceivedEventHandler
    • GossipWebsocketClient.TransactionReceivedEventHandler
    • GossipWebsocketClient.UniEnsBlockReqReceivedEventHandler
    • GossipWebsocketClient.VoteBundleReceivedEventHandler
    • GossipWebsocketClientConfiguration
  • Algorand.Gossip.Model
    • Tag
    • Topic
    • Topics
  • Algorand.Indexer
    • CommonApi
    • CommonApi.ObjectResponseResult<T>
    • ICommonApi
    • ILookupApi
    • ISearchApi
    • LookupApi
    • LookupApi.ObjectResponseResult<T>
    • SearchApi
    • SearchApi.ObjectResponseResult<T>
  • Algorand.Indexer.Model
    • Account
    • AccountParticipation
    • AccountResponse
    • AccountStateDelta
    • AccountsResponse
    • Application
    • ApplicationLocalState
    • ApplicationLocalStatesResponse
    • ApplicationLogData
    • ApplicationLogsResponse
    • ApplicationParams
    • ApplicationResponse
    • ApplicationStateSchema
    • ApplicationsResponse
    • 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
    • APIV1DELETEKeyResponse
    • APIV1DELETEMultisigResponse
    • APIV1GETWalletsResponse
    • APIV1POSTKeyExportResponse
    • APIV1POSTKeyImportResponse
    • APIV1POSTKeyListResponse
    • APIV1POSTKeyResponse
    • APIV1POSTMasterKeyExportResponse
    • APIV1POSTMultisigExportResponse
    • APIV1POSTMultisigImportResponse
    • APIV1POSTMultisigListResponse
    • APIV1POSTMultisigProgramSignResponse
    • APIV1POSTMultisigTransactionSignResponse
    • APIV1POSTProgramSignResponse
    • APIV1POSTTransactionSignResponse
    • APIV1POSTWalletInfoResponse
    • APIV1POSTWalletInitResponse
    • APIV1POSTWalletReleaseResponse
    • APIV1POSTWalletRenameResponse
    • APIV1POSTWalletRenewResponse
    • APIV1POSTWalletResponse
    • APIV1Wallet
    • APIV1WalletHandle
    • Api
    • Api.ObjectResponseResult<T>
    • ApiException
    • ApiException<TResult>
    • 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
    • SourceMap
    • SourceMap.VLQDecoder
    • Utils
    • VarintResult
    • Wordlist
  • Algorand.Utils.Crypto
    • FixedSecureRandom

Class Transaction

Inheritance
object
Transaction
ApplicationCallTransaction
AssetConfigurationTransaction
AssetFreezeTransaction
AssetMovementsTransaction
HeartBeatTransaction
KeyRegistrationTransaction
PaymentTransaction
StateProofTransaction
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")]
[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
Type Description
ulong?
| Edit this page View Source

Committed

Declaration
[JsonIgnore]
[IgnoreMember]
public bool Committed { get; }
Property Value
Type Description
bool
| Edit this page View Source

ConfirmedRound

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

Fee

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

FirstValid

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

GenesisHash

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

GenesisId

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

Group

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

LastValid

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

Lease

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

Note

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

PoolError

Declaration
[JsonIgnore]
[IgnoreMember]
public string PoolError { get; }
Property Value
Type Description
string
| Edit this page View Source

ReceiverRewards

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

RekeyTo

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

Sender

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

SenderRewards

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

Methods

| Edit this page View Source

BytesToSign()

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

Declaration
public byte[] BytesToSign()
Returns
Type Description
byte[]
| Edit this page View Source

EstimatedEncodedSize()

Declaration
public int EstimatedEncodedSize()
Returns
Type Description
int
| 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
Type Description
Transaction
| Edit this page View Source

RawTxID()

Return transaction ID as Digest

Declaration
public Digest RawTxID()
Returns
Type Description
Digest
| 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
Type Description
bool
| Edit this page View Source

ShouldSerializeFirstValid()

Declaration
public bool ShouldSerializeFirstValid()
Returns
Type Description
bool
| Edit this page View Source

ShouldSerializeGenesisId()

Declaration
public bool ShouldSerializeGenesisId()
Returns
Type Description
bool
| Edit this page View Source

ShouldSerializeLastValid()

Declaration
public bool ShouldSerializeLastValid()
Returns
Type Description
bool
| Edit this page View Source

ShouldSerializeLease()

Declaration
public bool ShouldSerializeLease()
Returns
Type Description
bool
| Edit this page View Source

ShouldSerializeNote()

Declaration
public bool ShouldSerializeNote()
Returns
Type Description
bool
| Edit this page View Source

Sign(Account)

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

Sign(LogicsigSignature)

Declaration
public SignedTransaction Sign(LogicsigSignature lsig)
Parameters
Type Name Description
LogicsigSignature lsig
Returns
Type Description
SignedTransaction
| Edit this page 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
| 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
Type Description
SignedTransaction

a signed transaction

| Edit this page View Source

TxID()

Return transaction ID as string

Declaration
public string TxID()
Returns
Type Description
string

Implements

IReturnableTransaction

Extension Methods

TransactionsExtensions.FillInParams(Transaction, DefaultApi)
TransactionsExtensions.FillInParams(Transaction, TransactionParametersResponse)
TransactionsExtensions.FillInParamsFromBlockHeader(Transaction, Block)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾