cfx_rpc_eth_types/
block_properties.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use cfx_types::{Address, H256, U256, U64};
use serde::Serialize;

/// Block properties needed for transaction execution
#[derive(Debug, Serialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct BlockProperties {
    pub tx_hash: Option<H256>,
    pub inner_block_hash: H256, // hash of the DAG block
    pub coinbase: Address,
    pub difficulty: U256,
    pub gas_limit: U256,
    pub timestamp: U64,
    pub base_fee_per_gas: Option<U256>,
}