Struct ethcore::views::TransactionView
[−]
[src]
pub struct TransactionView<'a> { /* fields omitted */ }
View onto transaction rlp.
Methods
impl<'a> TransactionView<'a>
[src]
impl<'a> TransactionView<'a>
pub fn new(rlp: ViewRlp<'a>) -> TransactionView<'a>
[src]
pub fn new(rlp: ViewRlp<'a>) -> TransactionView<'a>
Creates new view onto valid transaction rlp.
Use the view!
macro to create this view in order to capture debugging info.
Example
#[macro_use] extern crate ethcore; use ethcore::views::{TransactionView}; fn main() { let bytes : &[u8] = &[]; let tx_view = view!(TransactionView, bytes); }
pub fn rlp(&self) -> &ViewRlp<'a>
[src]
pub fn rlp(&self) -> &ViewRlp<'a>
Return reference to underlaying rlp.
pub fn hash(&self) -> H256
[src]
pub fn hash(&self) -> H256
Returns transaction hash.
pub fn nonce(&self) -> U256
[src]
pub fn nonce(&self) -> U256
Get the nonce field of the transaction.
pub fn gas_price(&self) -> U256
[src]
pub fn gas_price(&self) -> U256
Get the gas_price field of the transaction.
pub fn gas(&self) -> U256
[src]
pub fn gas(&self) -> U256
Get the gas field of the transaction.
pub fn value(&self) -> U256
[src]
pub fn value(&self) -> U256
Get the value field of the transaction.
pub fn data(&self) -> Bytes
[src]
pub fn data(&self) -> Bytes
Get the data field of the transaction.
pub fn v(&self) -> u8
[src]
pub fn v(&self) -> u8
Get the v field of the transaction.
pub fn r(&self) -> U256
[src]
pub fn r(&self) -> U256
Get the r field of the transaction.
pub fn s(&self) -> U256
[src]
pub fn s(&self) -> U256
Get the s field of the transaction.
Trait Implementations
Auto Trait Implementations
impl<'a> Send for TransactionView<'a>
impl<'a> Send for TransactionView<'a>
impl<'a> !Sync for TransactionView<'a>
impl<'a> !Sync for TransactionView<'a>