pub struct EthereumLegacyTransaction {
pub chain_id: EthereumChainId,
pub nonce: u64,
pub gas_price: BigUint,
pub gas_limit: u64,
pub to: Option<EthereumAddress>,
pub value: BigUint,
pub data: Vec<u8>,
}
Expand description
Transaction data
Fields§
§chain_id: EthereumChainId
Chain ID
nonce: u64
Nonce
gas_price: BigUint
Gas Price
gas_limit: u64
Gas Limit
to: Option<EthereumAddress>
Target address, or None to create contract
value: BigUint
Value transferred with transaction
data: Vec<u8>
Data transferred with transaction
Trait Implementations§
source§impl Clone for EthereumLegacyTransaction
impl Clone for EthereumLegacyTransaction
source§fn clone(&self) -> EthereumLegacyTransaction
fn clone(&self) -> EthereumLegacyTransaction
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 EthereumLegacyTransaction
impl Debug for EthereumLegacyTransaction
source§impl EthereumTransaction for EthereumLegacyTransaction
impl EthereumTransaction for EthereumLegacyTransaction
source§fn sign(&self, pk: EthereumPrivateKey) -> Result<Vec<u8>, VaultError>
fn sign(&self, pk: EthereumPrivateKey) -> Result<Vec<u8>, VaultError>
Sign transaction data with provided private key
source§fn encode_into(&self, rlp: &mut RlpStream, empty_sig: bool)
fn encode_into(&self, rlp: &mut RlpStream, empty_sig: bool)
Encode the transaction to the provided RPL Stream Read more
source§fn get_chain(&self) -> EthereumChainId
fn get_chain(&self) -> EthereumChainId
Chain Id, if specified.
None
is possible only for legacy transactions without EIP-155source§fn encode_signed(&self, sig: &dyn EthereumSignature) -> Vec<u8> ⓘ
fn encode_signed(&self, sig: &dyn EthereumSignature) -> Vec<u8> ⓘ
RLP encode transaction with provided
Signature
chain MUST NOT be specified for transactions signed by Ledgersource§impl Signable for EthereumLegacyTransaction
impl Signable for EthereumLegacyTransaction
Auto Trait Implementations§
impl RefUnwindSafe for EthereumLegacyTransaction
impl Send for EthereumLegacyTransaction
impl Sync for EthereumLegacyTransaction
impl Unpin for EthereumLegacyTransaction
impl UnwindSafe for EthereumLegacyTransaction
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