pub struct Transaction {
pub chain: Chain,
pub hash: String,
pub block_hash: String,
pub block_number: u64,
pub from: String,
pub to: String,
pub value: u64,
pub transaction_index: u64,
pub gas: u64,
pub gas_price: u64,
}
Expand description
Represents a transaction on an EVM based blockchain.
Fields§
§chain: Chain
The blockchain network identifier where this transaction occurred.
hash: String
The unique identifier (hash) of the transaction.
block_hash: String
The hash of the block containing this transaction.
block_number: u64
The block number in which this transaction was included.
from: String
The address of the sender (transaction originator).
to: String
The address of the recipient.
value: u64
The amount of Ether transferred in the transaction, in wei.
transaction_index: u64
The index of the transaction within its containing block.
gas: u64
The amount of gas allocated for transaction execution.
gas_price: u64
The price of gas in wei.
Implementations§
Trait Implementations§
Source§impl Clone for Transaction
impl Clone for Transaction
Source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
Returns a duplicate 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<'de> Deserialize<'de> for Transaction
impl<'de> Deserialize<'de> for Transaction
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
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more