re-add ENS

This commit is contained in:
Marco van Dijk 2023-05-04 10:16:19 +02:00
parent 9e1489f80d
commit e5799a1abb

View File

@ -60,7 +60,12 @@ if (!CONF_DISABLE_CMC) {
}
// Gets blockchain data
// ENS stuff TODO: CONF_DISABLE_ENS
const { ethers } = require("ethers");
const l1provider = new ethers.providers.JsonRpcProvider(API_L1_HTTP + API_L1_KEY);
// const l1provider = new ethers.providers.AlchemyProvider("mainnet", API_L1_KEY);
import { Network, Alchemy } from 'alchemy-sdk';
console.log("Connecting to HTTP RPC's");
const web3layer1 = new Alchemy({apiKey: API_L1_KEY, network: Network.ETH_MAINNET});