pub fn decode(data: &str, encoding: Option<&str>) -> Result<Vec<u8>>
Bytes from an action’s data and encoding (utf8, the default, or hex).
data
encoding
utf8
hex