Class TransactionCommon
Every transaction has the same set of common fields.
Inheritance
Implements
Namespace: Xrpl.Models.Transaction
Assembly: Xrpl.dll
Syntax
public abstract class TransactionCommon : object, ITransactionCommon
Constructors
| Improve this Doc View SourceTransactionCommon()
Declaration
protected TransactionCommon()
Properties
| Improve this Doc View SourceAccount
This is a required field The unique address of the account that initiated the transaction.
Declaration
public string Account { get; set; }
Property Value
Type | Description |
---|---|
System.String |
AccountTxnID
Hash value identifying another transaction.
If provided, this transaction is only valid if the sending account's previously-sent transaction matches the provided hash.
Declaration
public string AccountTxnID { get; set; }
Property Value
Type | Description |
---|---|
System.String |
date
The date/time when this transaction was included in a validated ledger.
Declaration
public uint? date { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt32> |
Fee
Integer amount of XRP, in drops, to be destroyed as a cost for distributing this transaction to the network.
Some transaction types have different minimum requirements.
Declaration
public Currency Fee { get; set; }
Property Value
Type | Description |
---|---|
Currency |
Flags
Set of bit-flags for this transaction.
number | GlobalFlags
Declaration
public uint? Flags { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt32> |
inLedger
Declaration
public uint? inLedger { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt32> |
LastLedgerSequence
Although optional, the LastLedgerSequence is strongly recommended on every transaction to ensure it's validated or rejected promptly.
Highest ledger index this transaction can appear in.
Specifying this field places a strict upper limit on how long the transaction can wait to be validated or rejected.
Declaration
public uint? LastLedgerSequence { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt32> |
ledger_index
The sequence number of the ledger that included this transaction.
Declaration
public uint? ledger_index { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt32> |
Memos
Additional arbitrary information used to identify this transaction.
Declaration
public List<Memo> Memos { get; set; }
Property Value
Type | Description |
---|---|
List<Memo> |
Meta
Transaction metadata is a section of data that gets added to a transaction after it is processed.
Any transaction that gets included in a ledger has metadata, regardless of whether it is successful.
The transaction metadata describes the outcome of the transaction in detail.
Declaration
public Meta Meta { get; set; }
Property Value
Type | Description |
---|---|
Meta |
Sequence
The sequence number of the account sending the transaction.
A transaction is only valid if the Sequence number is exactly 1 greater than the previous transaction from the same account.
The special case 0 means the transaction is using a Ticket instead.
Declaration
public uint? Sequence { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt32> |
Signers
Array of objects that represent a multi-signature which authorizes this transaction.
Declaration
public List<Signer> Signers { get; set; }
Property Value
Type | Description |
---|---|
List<Signer> |
SigningPublicKey
Hex representation of the public key that corresponds to the private key used to sign this transaction.
If an empty string, indicates a multi-signature is present in the Signers field instead.
Declaration
public string SigningPublicKey { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TransactionSignature
The signature that verifies this transaction as originating from the account it says it is from.
Declaration
public string TransactionSignature { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TransactionType
The type of transaction.
Valid types include: Payment
, OfferCreate
, SignerListSet
,
EscrowCreate
, EscrowFinish
, EscrowCancel
, PaymentChannelCreate
,
PaymentChannelFund
, PaymentChannelClaim
, and DepositPreauth
.
Declaration
public TransactionType TransactionType { get; set; }
Property Value
Type | Description |
---|---|
TransactionType |
Methods
| Improve this Doc View SourceToJson()
convert transaction to string json value
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |