pub struct GetBlockTemplateResultTransaction {
pub txid: Txid,
pub wtxid: Wtxid,
pub raw_tx: Vec<u8>,
pub fee: Amount,
pub sigops: u32,
pub weight: usize,
pub depends: Vec<u32>,
}
Expand description
Models a single transaction entry in the result of “getblocktemplate”
Fields§
§txid: Txid
The transaction id
wtxid: Wtxid
The wtxid of the transaction
raw_tx: Vec<u8>
The serilaized transaction bytes
fee: Amount
§sigops: u32
Transaction sigops
weight: usize
Transaction weight in weight units
depends: Vec<u32>
Transactions that must be in present in the final block if this one is.
Indexed by a 1-based index in the GetBlockTemplateResult.transactions
list
Implementations§
source§impl GetBlockTemplateResultTransaction
impl GetBlockTemplateResultTransaction
pub fn transaction(&self) -> Result<Transaction, Error>
Trait Implementations§
source§impl Clone for GetBlockTemplateResultTransaction
impl Clone for GetBlockTemplateResultTransaction
source§fn clone(&self) -> GetBlockTemplateResultTransaction
fn clone(&self) -> GetBlockTemplateResultTransaction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for GetBlockTemplateResultTransaction
impl<'de> Deserialize<'de> for GetBlockTemplateResultTransaction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<GetBlockTemplateResultTransaction> for GetBlockTemplateResultTransaction
impl PartialEq<GetBlockTemplateResultTransaction> for GetBlockTemplateResultTransaction
source§fn eq(&self, other: &GetBlockTemplateResultTransaction) -> bool
fn eq(&self, other: &GetBlockTemplateResultTransaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.