Struct everscale_types::models::transaction::Transaction
source · pub struct Transaction<C: CellFamily> {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<CellContainer<C>>,
pub out_msgs: Dict<C, Uint15, CellContainer<C>>,
pub total_fees: CurrencyCollection<C>,
pub state_update: Lazy<C, HashUpdate>,
pub info: Lazy<C, TxInfo<C>>,
}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<CellContainer<C>>Optional incoming message.
out_msgs: Dict<C, Uint15, CellContainer<C>>Outgoing messages.
total_fees: CurrencyCollection<C>Total transaction fees (including extra fwd fees).
state_update: Lazy<C, HashUpdate>Account state hashes.
info: Lazy<C, TxInfo<C>>Detailed transaction info.
Implementations§
source§impl<C: CellFamily> Transaction<C>
impl<C: CellFamily> Transaction<C>
source§impl<C> Transaction<C>where
for<'c> C: CellFamily + 'c,
impl<C> Transaction<C>where for<'c> C: CellFamily + 'c,
sourcepub fn iter_out_msgs(&self) -> TxOutMsgIter<'_, C> ⓘ
pub fn iter_out_msgs(&self) -> TxOutMsgIter<'_, C> ⓘ
Gets an iterator over the output messages of this transaction, in order by lt.
The iterator element type is Result<Message<'a, C>>.
If the dictionary or message is invalid, finishes after the first invalid element, returning an error.