Skip to main content

serialise_notification

Function serialise_notification 

Source
pub fn serialise_notification(
    event: &NeoString,
    state: &NeoArray<NeoValue>,
) -> Vec<u8> 
Expand description

Serialise a UTF-8 event name + state array as a notification body. The body has the same shape as C# RuntimeNotify expects: [event_name as NeoVM ByteString, state as Array StackItem].