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

source§

fn clone(&self) -> EthereumLegacyTransaction

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for EthereumLegacyTransaction

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl EthereumTransaction for EthereumLegacyTransaction

source§

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)

Encode the transaction to the provided RPL Stream Read more
source§

fn get_chain(&self) -> EthereumChainId

Chain Id, if specified. None is possible only for legacy transactions without EIP-155
source§

fn encode_unsigned(&self) -> Vec<u8>

RLP encoded transaction without signature
source§

fn encode_signed(&self, sig: &dyn EthereumSignature) -> Vec<u8>

RLP encode transaction with provided Signature chain MUST NOT be specified for transactions signed by Ledger
source§

fn hash(&self) -> [u8; 32]

Hash of the transaction. Used as TX ID
source§

impl Signable for EthereumLegacyTransaction

source§

fn as_sign_message(&self) -> Vec<u8>

Produce a bytes array that can be signed. Note it’s not the hash in the most cases, but a source message before applying a hash which is a signature input.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> SignableHash for Twhere T: Signable + ?Sized,

source§

fn hash(&self) -> Result<[u8; 32], VaultError>

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

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

§

fn vzip(self) -> V

§

impl<T> JsonSchemaMaybe for T