alloy_serde::ttd

Function deserialize_json_ttd_opt

source
pub fn deserialize_json_ttd_opt<'de, D>(
    deserializer: D,
) -> Result<Option<U256>, D::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).