Content
@
https://warpcast.com/~/channel/fc-devs
0 reply
0 recast
0 reaction
vincent
@pixel
On hub-nodejs, if I run `client subscribe ... fromId 0 ...`, will I eventually get all unpruned events from Hub? If I want to get all events stored by Hub, is using `getAllMessagesBySyncIds` more efficient than doing `client subscribe ... fromId 0 ...`?
2 replies
0 recast
8 reactions
Greg
@greg
No, those type of events expire after 3 days
2 replies
0 recast
1 reaction
Greg
@greg
Pretty sure the only way is to iterate through all fids with the relevant hub queries https://github.com/gskril/farcaster-indexer/blob/hubs/src/backfill.ts
0 reply
0 recast
1 reaction
vincent
@pixel
Hmm, I did remember getting events older than 3 days with that specific function. Maybe you were talking about getEvents in the HTTP API?
1 reply
0 recast
0 reaction