Struct revm::BlockEnv[][src]

pub struct BlockEnv {
    pub gas_limit: U256,
    pub number: U256,
    pub coinbase: H160,
    pub timestamp: U256,
    pub difficulty: U256,
    pub basefee: U256,
    pub gas_used: U256,
}

Fields

gas_limit: U256number: U256

somebody call it nonce

coinbase: H160

Coinbase or miner or address that created and signed the block. Address where we are going to send gas spend

timestamp: U256difficulty: U256basefee: U256

basefee is added in EIP1559 London upgrade

gas_used: U256

incrementaly added on every transaction. It can be cleared if needed

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.