Function reth_node_core::rpc::types::serde_helpers::ttd::deserialize_json_ttd_opt
pub fn deserialize_json_ttd_opt<'de, D>(
deserializer: D,
) -> Result<Option<Uint<256, 4>>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Expand description
Supports parsing the TTD as an Option<u64>
, or Option<f64>
specifically for the mainnet TTD
(5.875e22).