Skip to content

Instantly share code, notes, and snippets.

@gayleQN
Created February 4, 2026 14:52
Show Gist options
  • Select an option

  • Save gayleQN/ceffb95987c2f51f3aeedb730e0e0fc5 to your computer and use it in GitHub Desktop.

Select an option

Save gayleQN/ceffb95987c2f51f3aeedb730e0e0fc5 to your computer and use it in GitHub Desktop.
Track Activity of Specific Builders Using Hypercore Streams on Quicknode
function main(payload) {
const { data = [], metadata } = payload;
const builders = new Set([
"0xb84168cf3be63c6b8dad05ff5d755e97432ff80b",
]);
const matchedEvents = [];
for (const block of data) {
const events = Array.isArray(block?.events) ? block.events : [];
for (const event of events) {
const trade = event?.[1];
const builder = trade?.builder;
if (typeof builder === "string" && builders.has(builder)) {
matchedEvents.push(event);
}
}
}
if (matchedEvents.length === 0) {
return null;
}
return {
data: {
events: matchedEvents,
metadata,
},
};
}
@gayleQN
Copy link
Author

gayleQN commented Feb 4, 2026

Network: Hyperliquid Hypercore
Dataset: Trades

@gayleQN
Copy link
Author

gayleQN commented Feb 4, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment