Skip to content

enviodev/ERC20-HyperSync-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

HyperSync — ERC20 Transfers In/Out of Contract

Streams every Transfer(address,address,uint256) log on Arbitrum where the contract 0xc41a5462362f6ab4a878ae0aac91b7259f7176a5 is either the from or to party, then groups them by the parent transaction's function selector (e.g. transfer, swapExactTokensForTokens, multicall).

What it fetches

  • Endpoint: https://arbitrum.hypersync.xyz
  • Logs: Transfer topic with the contract as topic1 (outgoing) or topic2 (incoming)
  • Fields: TransactionHash, Topic1, Topic2, plus parent tx Hash + Input (for selector decoding via viem against HyperSync/abi.json)
  • Range: block 0 → archive head (full history)

Speed

Full Arbitrum history scan — 604.83k transfer logs across 462.35M blocks in ~60 seconds. Peak 69.91k logs/sec, scan rate 7.70M blocks/sec.

HyperSync run

Run locally

Install Bun:

curl -fsSL https://bun.sh/install | bash

Then:

cd HyperSync
bun install
bun run index.ts

Optional: set ENVIO_API_TOKEN in .env for higher rate limits.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors