otterscan/src/ethersconfig.ts

10 lines
217 B
TypeScript
Raw Normal View History

2021-07-01 18:21:40 +00:00
import { ethers } from "ethers";
export const ERIGON_NODE =
process.env.REACT_APP_ERIGON_URL || "http://127.0.0.1:8545";
2021-07-04 02:02:04 +00:00
2021-07-01 18:21:40 +00:00
export const provider = new ethers.providers.JsonRpcProvider(
2021-07-04 02:02:04 +00:00
ERIGON_NODE,
2021-07-01 18:21:40 +00:00
"mainnet"
);