[][src]Struct web30::types::TransactionResponse

pub struct TransactionResponse {
    pub block_hash: Option<Data>,
    pub block_number: Option<Uint256>,
    pub from: Address,
    pub gas: Uint256,
    pub gas_price: Uint256,
    pub hash: Data,
    pub input: Data,
    pub nonce: Uint256,
    pub to: Option<Address>,
    pub transaction_index: Option<Uint256>,
    pub value: Uint256,
    pub v: Uint256,
    pub r: Uint256,
    pub s: Uint256,
}

As received by getTransactionByHash

See more: https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_gettransactionbyhash

Fields

block_hash: Option<Data>

hash of the block where this transaction was in. null when its pending.

block_number: Option<Uint256>

block number where this transaction was in. null when its pending.

from: Address

address of the sender.

gas: Uint256

gas provided by the sender.

gas_price: Uint256

gas price provided by the sender in Wei.

hash: Data

hash of the transaction

input: Data

the data send along with the transaction.

nonce: Uint256

the number of transactions made by the sender prior to this one.

to: Option<Address>

address of the receiver. null when its a contract creation transaction.

transaction_index: Option<Uint256>

integer of the transaction's index position in the block. null when its pending.

value: Uint256

value transferred in Wei.

v: Uint256

ECDSA recovery id

r: Uint256

ECDSA signature r

s: Uint256

ECDSA signature s

Trait Implementations

impl Clone for TransactionResponse[src]

impl Debug for TransactionResponse[src]

impl Default for TransactionResponse[src]

impl<'de> Deserialize<'de> for TransactionResponse[src]

impl Eq for TransactionResponse[src]

impl Hash for TransactionResponse[src]

impl Ord for TransactionResponse[src]

fn cmp(&self, other: &Self) -> Ordering[src]

the goal of this ordering is to sort transactions by their block number, in the case of transactions in the same block or transactions without a block number transactions without a block are greater than transactions with one and are sorted by nonce when in the same block or without a block.

impl PartialEq<TransactionResponse> for TransactionResponse[src]

impl PartialOrd<TransactionResponse> for TransactionResponse[src]

impl Serialize for TransactionResponse[src]

impl StructuralEq for TransactionResponse[src]

impl StructuralPartialEq for TransactionResponse[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,