// Installation instructions: https://github.com/alchemyplatform/alchemy-web3
// Import the AlchemyWeb3 library. Filepath to functions:
// /@alch/alchemy-web3/dist/alchemyWeb3.js
const { createAlchemyWeb3 } = require("@alch/alchemy-web3");
// Replace with your Alchemy API key:
// Initialize an alchemy-web3 instance:
const web3 = createAlchemyWeb3(
`https://eth-mainnet.g.alchemy.com/v2/${apiKey}`);
// Query the blockchain (replace example parameters)
const count = await web3.eth.getBlockTransactionCountByNumber({
// Print the output to console