pub struct TransactionInfo {
pub created_at: Option<i64>,
/* private fields */
}
Expand description
Representation of a transaction returned by stellar RPC
Specific type for GetTransactionsResponse
Fields§
§created_at: Option<i64>
The unix timestamp of when the transaction was included in the ledger.
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.