Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env node
/**
* USDC Blacklist Verifier
*
* 1. Uses eth_getLogs to fetch the FULL history of Blacklisted(address) and
* UnBlacklisted(address) events from the USDC contract — no pagination limit.
* 2. Builds the current expected state from events alone (net blacklisted).
* 3. Calls isBlacklisted(address) on-chain for every address to confirm current state.
* 4. Flags any mismatches and addresses that were reversed (UnBlacklisted).