Setting Up a Connection
const Web3 = require('web3');
// Replace with the relevant RPC URL
const rpcURL = 'https://rpc.dailychain.org';
const web3 = new Web3(rpcURL);
// Check if the connection is successful
web3.eth.getBlockNumber().then(console.log);
Last updated