Struct quorum_vault_client::Transaction
source · pub struct Transaction {Show 19 fields
pub hash: H256,
pub nonce: U256,
pub block_hash: Option<H256>,
pub block_number: Option<U64>,
pub transaction_index: Option<U64>,
pub from: Option<H160>,
pub to: Option<H160>,
pub value: U256,
pub gas_price: Option<U256>,
pub gas: U256,
pub input: Bytes,
pub v: Option<U64>,
pub r: Option<U256>,
pub s: Option<U256>,
pub raw: Option<Bytes>,
pub transaction_type: Option<U64>,
pub access_list: Option<Vec<AccessListItem, Global>>,
pub max_fee_per_gas: Option<U256>,
pub max_priority_fee_per_gas: Option<U256>,
}
Expand description
Description of a Transaction, pending or in the chain.
Fields§
§hash: H256
Hash
nonce: U256
Nonce
block_hash: Option<H256>
Block hash. None when pending.
block_number: Option<U64>
Block number. None when pending.
transaction_index: Option<U64>
Transaction Index. None when pending.
from: Option<H160>
Sender
to: Option<H160>
Recipient (None when contract creation)
value: U256
Transfered value
gas_price: Option<U256>
Gas Price
gas: U256
Gas amount
input: Bytes
Input data
v: Option<U64>
ECDSA recovery id
r: Option<U256>
ECDSA signature r, 32 bytes
s: Option<U256>
ECDSA signature s, 32 bytes
raw: Option<Bytes>
Raw transaction data
transaction_type: Option<U64>
Transaction type, Some(1) for AccessList transaction, None for Legacy
access_list: Option<Vec<AccessListItem, Global>>
Access list
max_fee_per_gas: Option<U256>
Max fee per gas
max_priority_fee_per_gas: Option<U256>
miner bribe
Trait Implementations§
source§impl Clone for Transaction
impl Clone for Transaction
source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
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 Debug for Transaction
impl Debug for Transaction
source§impl Default for Transaction
impl Default for Transaction
source§fn default() -> Transaction
fn default() -> Transaction
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Transaction
impl<'de> Deserialize<'de> for Transaction
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Transaction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Transaction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Transaction> for Transaction
impl PartialEq<Transaction> for Transaction
source§fn eq(&self, other: &Transaction) -> bool
fn eq(&self, other: &Transaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Transaction
impl Serialize for Transaction
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more