pub struct GetTransactionResponse {
pub latest_ledger: u32,
pub latest_ledger_close_time: String,
pub oldest_ledger: u32,
pub oldest_ledger_close_time: String,
pub created_at: Option<String>,
/* private fields */
}
Expand description
Response to get_transaction
See TransactionDetails for additionnal fields
Fields§
§latest_ledger: u32
The sequence number of the latest ledger known to Stellar RPC at the time it handled the request.
latest_ledger_close_time: String
The unix timestamp of the close time of the latest ledger known to Stellar RPC at the time it handled the request.
oldest_ledger: u32
The sequence number of the oldest ledger ingested by Stellar RPC at the time it handled the request.
oldest_ledger_close_time: String
The unix timestamp of the close time of the oldest ledger ingested by Stellar RPC at the time it handled the request.
created_at: Option<String>
(optional) The unix timestamp of when the transaction was included in the ledger. This field is only present if status is TransactionStatus::Success or TransactionStatus::Failed.
Methods from Deref<Target = 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.