pub fn parse_chain_head_json_rpc(json_rpc: &str) -> Option<ChainHeadEvent>Expand description
Parse a smoldot chainHead_v1_followEvent notification into a ChainHeadEvent.
Expected JSON shape:
{
"jsonrpc": "2.0",
"method": "chainHead_v1_followEvent",
"params": {
"subscription": "...",
"result": { "event": "...", ... }
}
}Returns None if the message is not a follow-event or cannot be parsed.