Skip to content

Commit 9e61b6a

Browse files
committed
move RPC node to env
1 parent 9ae2315 commit 9e61b6a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ETHEREUM_RPC_URL=

src/pages/api/ens/resolve/[address].ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import { StaticJsonRpcProvider } from "@ethersproject/providers";
44
import { getAddress, isAddress } from "@ethersproject/address";
55
import url from "url";
66

7-
const provider = new StaticJsonRpcProvider(
8-
"https://eth-mainnet.alchemyapi.io/v2/5v4BuuWBFvvYHZoZZP5xFo2q1ldvABwj"
9-
);
7+
const provider = new StaticJsonRpcProvider(process.env.ETHEREUM_RPC_URL);
108

119
const firstParam = (param: string | string[]) => {
1210
return Array.isArray(param) ? param[0] : param;

0 commit comments

Comments
 (0)