Struct ckb_types::core::TransactionView [−][src]
pub struct TransactionView { /* fields omitted */ }
Expand description
A readonly and immutable struct which includes Transaction
and its associated hashes.
Notice
This struct is not implement the trait Default
, use TransactionBuilder
to construct it.
Implementations
Creates an empty advanced builder.
Creates an advanced builder base on current data.
Gets a clone of packed::Transaction
.
Gets a clone of witness_hash
.
Gets raw.cell_deps
.
Gets raw.header_deps
.
Gets raw.inputs
.
Gets raw.outputs
.
Gets raw.outputs_data
.
Gets an output through its index.
Gets an output and its data through its index.
Gets out points for all outputs.
Creates an iterator from out points of all outputs.
Creates an iterator from out points of all inputs.
Creates an iterator from all outputs and their data.
Creates an iterator from raw.cell_deps
.
Creates an iterator from raw.header_deps
.
Sets a fake witness hash.
Sums the capacities of all outputs.
Checks whether the transaction is a cellbase.
Creates a new ProposalShortId
from the transaction hash.
Trait Implementations
Packs a rust type into binary data.
Unpack binary data into rust types.
Unpack binary data into rust types.
Auto Trait Implementations
impl RefUnwindSafe for TransactionView
impl Send for TransactionView
impl Sync for TransactionView
impl Unpin for TransactionView
impl UnwindSafe for TransactionView
Blanket Implementations
Mutably borrows from an owned value. Read more