pub struct ExecutionPayloadV1 {Show 14 fields
pub parent_hash: B256,
pub fee_recipient: Address,
pub state_root: B256,
pub receipts_root: B256,
pub logs_bloom: Bloom,
pub prev_randao: B256,
pub block_number: u64,
pub gas_limit: u64,
pub gas_used: u64,
pub timestamp: u64,
pub extra_data: Bytes,
pub base_fee_per_gas: U256,
pub block_hash: B256,
pub transactions: Vec<Bytes>,
}
Expand description
This structure maps on the ExecutionPayload structure of the beacon chain spec.
Fields§
§parent_hash: B256
The parent hash of the block.
fee_recipient: Address
The fee recipient of the block.
state_root: B256
The state root of the block.
receipts_root: B256
The receipts root of the block.
logs_bloom: Bloom
The logs bloom of the block.
prev_randao: B256
The previous randao of the block.
block_number: u64
The block number.
gas_limit: u64
The gas limit of the block.
gas_used: u64
The gas used of the block.
timestamp: u64
The timestamp of the block.
extra_data: Bytes
The extra data of the block.
base_fee_per_gas: U256
The base fee per gas of the block.
block_hash: B256
The block hash of the block.
transactions: Vec<Bytes>
The transactions of the block.
Implementations§
source§impl ExecutionPayloadV1
impl ExecutionPayloadV1
sourcepub const fn block_num_hash(&self) -> BlockNumHash
pub const fn block_num_hash(&self) -> BlockNumHash
Returns the block number and hash as a BlockNumHash
.
Trait Implementations§
source§impl Clone for ExecutionPayloadV1
impl Clone for ExecutionPayloadV1
source§fn clone(&self) -> ExecutionPayloadV1
fn clone(&self) -> ExecutionPayloadV1
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 ExecutionPayloadV1
impl Debug for ExecutionPayloadV1
source§impl Decode for ExecutionPayloadV1
impl Decode for ExecutionPayloadV1
source§fn is_ssz_fixed_len() -> bool
fn is_ssz_fixed_len() -> bool
Returns
true
if this object has a fixed-length. Read moresource§fn ssz_fixed_len() -> usize
fn ssz_fixed_len() -> usize
The number of bytes this object occupies in the fixed-length portion of the SSZ bytes. Read more
source§fn from_ssz_bytes(bytes: &[u8]) -> Result<Self, DecodeError>
fn from_ssz_bytes(bytes: &[u8]) -> Result<Self, DecodeError>
source§impl<'de> Deserialize<'de> for ExecutionPayloadV1
impl<'de> Deserialize<'de> for ExecutionPayloadV1
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
source§impl Encode for ExecutionPayloadV1
impl Encode for ExecutionPayloadV1
source§fn is_ssz_fixed_len() -> bool
fn is_ssz_fixed_len() -> bool
Returns
true
if this object has a fixed-length. Read moresource§fn ssz_fixed_len() -> usize
fn ssz_fixed_len() -> usize
The number of bytes this object occupies in the fixed-length portion of the SSZ bytes. Read more
source§fn ssz_bytes_len(&self) -> usize
fn ssz_bytes_len(&self) -> usize
Returns the size (in bytes) when
self
is serialized. Read moresource§impl From<ExecutionPayloadV1> for ExecutionPayload
impl From<ExecutionPayloadV1> for ExecutionPayload
source§fn from(payload: ExecutionPayloadV1) -> Self
fn from(payload: ExecutionPayloadV1) -> Self
Converts to this type from the input type.
source§impl PartialEq for ExecutionPayloadV1
impl PartialEq for ExecutionPayloadV1
source§impl Serialize for ExecutionPayloadV1
impl Serialize for ExecutionPayloadV1
impl Eq for ExecutionPayloadV1
impl StructuralPartialEq for ExecutionPayloadV1
Auto Trait Implementations§
impl !Freeze for ExecutionPayloadV1
impl RefUnwindSafe for ExecutionPayloadV1
impl Send for ExecutionPayloadV1
impl Sync for ExecutionPayloadV1
impl Unpin for ExecutionPayloadV1
impl UnwindSafe for ExecutionPayloadV1
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more