Skip to main content

require_bytes

Function require_bytes 

Source
pub fn require_bytes(
    map: &Map<String, Value>,
    key: &str,
) -> Result<Vec<u8>, RpcError>
Expand description

Pull a byte field from the params map. Accepts a JSON string and decodes it as base64, or a JSON array of numbers.