pub fn decode_wei(hex: &str) -> Result<U256>Expand description
Parse a hex-encoded wei string into a U256.
Accepts an optional 0x/0X prefix. Empty strings and non-hex bytes are
protocol violations on the server’s part — we surface them as
Error::Server so init.sh-style callers abort instead of spinning.