{ slot: number; // Slot number containing this entry index: number; // Entry index within the slot hash: string; // Entry hash (proof-of-history) numHashes: number; // Number of hashes in PoH sequence transactions: Array<{ // Transactions in this entry signature: string; isVote: boolean; meta: { err: any; // Error if transaction failed fee: number; // Transaction fee // ... other transaction metadata }; }>; tick: boolean; // Whether this is a tick entry}
function handleFilteredEntries(data: any): void { if (data.entry) { const entry = data.entry; // Only process entries with transactions if (entry.transactions?.length > 0) { // Only process entries with non-vote transactions const hasNonVoteTransactions = entry.transactions.some((tx: any) => !tx.isVote); if (hasNonVoteTransactions) { processImportantEntry(entry); } } }}