pub fn require_str( map: &Map<String, Value>, key: &str, ) -> Result<String, RpcError>
Pull a string field from the params map, erroring if missing.