Function web30::types::data_serialize

source ·
pub fn data_serialize<S>(x: &[u8], s: S) -> Result<S::Ok, S::Error>
where S: Serializer,
Expand description

Serializes slice of data as “UNFORMATTED DATA” format required by Ethereum JSONRPC API.

See more https://github.com/ethereum/wiki/wiki/JSON-RPC#hex-value-encoding