pub struct TransactionDetails {
pub status: TransactionStatus,
pub ledger: Option<u32>,
pub application_order: Option<i32>,
pub fee_bump: Option<bool>,
/* private fields */
}
Expand description
Representation of a transaction returned by stellar RPC
Fields§
§status: TransactionStatus
The current status of the transaction by hash
ledger: Option<u32>
The sequence number of the latest ledger known to Stellar RPC at the time it handled the request. (optional) The sequence number of the ledger which included the transaction. This field is only present if status is TransactionStatus::Success or TransactionStatus::Failed.
application_order: Option<i32>
(optional) The index of the transaction among all transactions included in the ledger. This field is only present if status is TransactionStatus::Success or TransactionStatus::Failed.
fee_bump: Option<bool>
(optional) Indicates whether the transaction was fee bumped. This field is only present if status is TransactionStatus::Success or TransactionStatus::Failed.
Implementations§
Source§impl TransactionDetails
impl TransactionDetails
Sourcepub fn to_envelope(&self) -> Option<TransactionEnvelope>
pub fn to_envelope(&self) -> Option<TransactionEnvelope>
(optional) The TransactionEnvelope struct for this transaction.
Sourcepub fn to_result(&self) -> Option<TransactionResult>
pub fn to_result(&self) -> Option<TransactionResult>
(optional) The TransactionResult struct for this transaction. This field is only present if status is TransactionStatus::Success or TransactionStatus::Failed.
Sourcepub fn to_result_meta(&self) -> Option<(TransactionMeta, Option<ScVal>)>
pub fn to_result_meta(&self) -> Option<(TransactionMeta, Option<ScVal>)>
(optional) The TransactionMeta struct of this transaction. Also return the optional return value of the transaction.
Sourcepub fn to_diagnostic_events(&self) -> Option<Vec<DiagnosticEvent>>
pub fn to_diagnostic_events(&self) -> Option<Vec<DiagnosticEvent>>
(optional) A base64 encoded slice of xdr.DiagnosticEvent. This is only present if the ENABLE_SOROBAN_DIAGNOSTIC_EVENTS has been enabled in the stellar-core config.
Deprecated: will be removed in protocol 24
Sourcepub fn to_events(
&self,
) -> Option<(Vec<TransactionEvent>, Vec<Vec<ContractEvent>>)>
pub fn to_events( &self, ) -> Option<(Vec<TransactionEvent>, Vec<Vec<ContractEvent>>)>
Events contains all events related to the transaction: transaction and contract events.