Expand description
Hexadecimal string parsing utilities for blockchain data.
This module provides functions for converting hexadecimal strings (commonly used in blockchain APIs and JSON-RPC responses) to native Rust types, with specialized support for timestamps.
Functionsยง
- deserialize_
hex_ number - Custom deserializer function for hex numbers.
- deserialize_
hex_ timestamp - Custom deserializer function for hex timestamps to convert hex seconds to
UnixNanos. - deserialize_
opt_ hex_ u64 - Custom deserializer that converts an optional hexadecimal string into an
Option<u64>. - deserialize_
opt_ hex_ u256 - Custom deserializer that converts an optional hexadecimal string into an
Option<U256>. ANoneresult indicates the field was absent or explicitlynull. - from_
str_ hex_ to_ u64 - Converts a hexadecimal string to a u64 integer.