Changed REST API endpoint so that they don't return simply the stored event. Instead we wrap the sse events in an envelope which looks like:
{ "header": { "api_version": "2.0.0", "network_name": "casper" }, "payload": {(...)} }
Events in endpoints that return lists (like signatures for block) will also have each individual element of the list wrapped in such envelope.
In the above the header fields:
"api_version" is the api version which was reported in the ApiVersion message for the node that we fetched the event from.
"network_name" is the "chainspec_name" field that was returned in the "/status" endpoint for the node that we fetched the event from.
Changed REST API endpoint so that they don't return simply the stored event. Instead we wrap the sse events in an envelope which looks like:
{ "header": { "api_version": "2.0.0", "network_name": "casper" }, "payload": {(...)} }