cfx_rpc_eth_types/
block_properties.rs

1use cfx_types::{Address, H256, U256, U64};
2use serde::Serialize;
3
4/// Block properties needed for transaction execution
5#[derive(Debug, Serialize, Clone)]
6#[serde(rename_all = "camelCase")]
7pub struct BlockProperties {
8    pub tx_hash: Option<H256>,
9    pub inner_block_hash: H256, // hash of the DAG block
10    pub coinbase: Address,
11    pub difficulty: U256,
12    pub gas_limit: U256,
13    pub timestamp: U64,
14    pub base_fee_per_gas: Option<U256>,
15}