getFidReactions
getFidReactions
- gets reactions using a fid
Method signature:
getFidReactions = async ({
fid,
limitPerRequest = 10,
fromTimestamp = 0,
toTimestamp = Date.now(),
delayBetweenRequests = 0,
fetchUntilNoDataLeft = false,
maximumReactionsFetched = 0
}: {
fid: number,
limitPerRequest?: number,
fromTimestamp?: number,
toTimestamp?: number,
delayBetweenRequests?: number,
fetchUntilNoDataLeft?: boolean,
maximumReactionsFetched?: number
}): Promise<{
reactions: {
hash: string;
fid: number | undefined;
reaction: {
type: ReactionType | undefined;
targetCastId: CastId | undefined;
targetUrl: string | undefined;
};
timestamp: number;
fullMessageData: MessageData | undefined;
}[];
} | null>
Parameters
fid
- fid to get reactions fromitemsPerRequests
- how many items per request, max limited by node to a maximum of 100fromTimestamp
- timestamp from which to get datatoTimestamp
- timestamp until when to get datadelayBetweenRequests
- delay between requests ( can help prevent rate limits or node load , default is 0, which means no delay)maximumReactionsFetched
- stop when this number is reachedfetchUntilNoDataLeft
- this must be set totrue
if you want to make more than one request, and only exit when one of the conditions is satisfied or no data is left
Last updated