Struct everscale_types::models::transaction::Transaction
source · pub struct Transaction {Show 13 fields
pub account: CellHash,
pub lt: u64,
pub prev_trans_hash: CellHash,
pub prev_trans_lt: u64,
pub now: u32,
pub out_msg_count: Uint15,
pub orig_status: AccountStatus,
pub end_status: AccountStatus,
pub in_msg: Option<Cell>,
pub out_msgs: Dict<Uint15, Cell>,
pub total_fees: CurrencyCollection,
pub state_update: Lazy<HashUpdate>,
pub info: Lazy<TxInfo>,
}Expand description
Blockchain transaction.
Fields§
§account: CellHashAccount on which this transaction was produced.
lt: u64Logical time when the transaction was created.
prev_trans_hash: CellHashThe hash of the previous transaction on the same account.
prev_trans_lt: u64The logical time of the previous transaction on the same account.
now: u32Unix timestamp when the transaction was created.
out_msg_count: Uint15The number of outgoing messages.
orig_status: AccountStatusAccount status before this transaction.
end_status: AccountStatusAccount status after this transaction.
in_msg: Option<Cell>Optional incoming message.
out_msgs: Dict<Uint15, Cell>Outgoing messages.
total_fees: CurrencyCollectionTotal transaction fees (including extra fwd fees).
state_update: Lazy<HashUpdate>Account state hashes.
info: Lazy<TxInfo>Detailed transaction info.
Implementations§
source§impl Transaction
impl Transaction
source§impl Transaction
impl Transaction
sourcepub fn iter_out_msgs(&self) -> TxOutMsgIter<'_> ⓘ
pub fn iter_out_msgs(&self) -> TxOutMsgIter<'_> ⓘ
Gets an iterator over the output messages of this transaction, in order by lt.
The iterator element type is Result<Message<'a>>.
If the dictionary or message is invalid, finishes after the first invalid element, returning an error.
Trait Implementations§
source§impl Clone for Transaction
impl Clone for Transaction
source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for Transaction
impl Debug for Transaction
source§impl<'a> Load<'a> for Transaction
impl<'a> Load<'a> for Transaction
source§impl PartialEq<Transaction> for Transaction
impl PartialEq<Transaction> for Transaction
source§fn eq(&self, other: &Transaction) -> bool
fn eq(&self, other: &Transaction) -> bool
self and other values to be equal, and is used
by ==.