Skip to content

Commit

Permalink
Change Ethereum RPC node.
Browse files Browse the repository at this point in the history
  • Loading branch information
gorankarlic committed Nov 25, 2024
1 parent a12c72c commit 34f9047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ <h4 class="ui dividing header">System log</h4>
window.addEventListener("unhandledrejection", (e) => document.querySelector("pre").textContent += `${e.reason.stack}\n`, true);

const log = (text) => document.querySelector("#log").textContent = text;
const node = "https://eth-mainnet.rpc.grove.city/v1/29934f7f10137fb45e8609a0";
const node = "https://ethereum-rpc.publicnode.com";
const web3 = new Web3(node);
log("Connecting to Ethereum blockchain...\n");
document.querySelector("pre").textContent += `Connected to Ethereum blockchain at block number ${await web3.eth.getBlockNumber()}.\n`;
Expand Down

0 comments on commit 34f9047

Please sign in to comment.