diff --git a/src/Home.tsx b/src/Home.tsx index 08f1dc8..82c3cdb 100644 --- a/src/Home.tsx +++ b/src/Home.tsx @@ -4,6 +4,7 @@ import { ethers } from "ethers"; import Logo from "./Logo"; import Timestamp from "./components/Timestamp"; import { useLatestBlock } from "./useLatestBlock"; +import { ERIGON_NODE } from "./ethersconfig"; const Home: React.FC = () => { const [search, setSearch] = useState(); @@ -63,6 +64,9 @@ const Home: React.FC = () => { )} + + Using Erigon node at {ERIGON_NODE} + diff --git a/src/ethersconfig.ts b/src/ethersconfig.ts index e0a9fd5..6b24d6d 100644 --- a/src/ethersconfig.ts +++ b/src/ethersconfig.ts @@ -1,6 +1,8 @@ import { ethers } from "ethers"; +export const ERIGON_NODE = "http://127.0.0.1:8545"; + export const provider = new ethers.providers.JsonRpcProvider( - "http://127.0.0.1:8545", + ERIGON_NODE, "mainnet" );