Skip to main content

parse_ether_value

Function parse_ether_value 

Source
pub fn parse_ether_value(s: &str) -> Result<U256>
Expand description

Parse ether value string into wei (U256). Supports: plain number (wei), or number with suffix (ether, gwei, wei, etc). Examples: “1000000000000000000”, “1ether”, “100gwei”, “1000wei”