const Web3 = require('web3');
const web3 = new Web3('https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID');
async function getContracts() {
const blockNumber = await web3.eth.getBlockNumber();
// Here, you could pull events across all blocks or a specific range.
for(let i = 0; i <= blockNumber; i ) {
let block = await web3.eth.getBlock(i, true);
if (block