MCPcopy Create free account
hub / github.com/block/buzz / fetchRouteEvent

Function fetchRouteEvent

desktop/src/app/routes/ChannelRouteScreen.tsx:27–34  ·  view source on GitHub ↗
(eventId: string)

Source from the content-addressed store, hash-verified

25const MAX_ROUTE_ANCESTOR_HOPS = 50;
26
27async function fetchRouteEvent(eventId: string): Promise<RelayEvent | null> {
28 try {
29 return await getEventById(eventId);
30 } catch (error) {
31 console.error("Failed to load route event", eventId, error);
32 return null;
33 }
34}
35
36function getReplyParentId(event: RelayEvent): string | null {
37 if (isBroadcastReply(event.tags)) {

Callers 1

fetchRouteTargetEventsFunction · 0.85

Calls 2

getEventByIdFunction · 0.90
errorMethod · 0.80

Tested by

no test coverage detected