We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ae2315 commit 9e61b6aCopy full SHA for 9e61b6a
.env
@@ -0,0 +1 @@
1
+ETHEREUM_RPC_URL=
src/pages/api/ens/resolve/[address].ts
@@ -4,9 +4,7 @@ import { StaticJsonRpcProvider } from "@ethersproject/providers";
4
import { getAddress, isAddress } from "@ethersproject/address";
5
import url from "url";
6
7
-const provider = new StaticJsonRpcProvider(
8
- "https://eth-mainnet.alchemyapi.io/v2/5v4BuuWBFvvYHZoZZP5xFo2q1ldvABwj"
9
-);
+const provider = new StaticJsonRpcProvider(process.env.ETHEREUM_RPC_URL);
10
11
const firstParam = (param: string | string[]) => {
12
return Array.isArray(param) ? param[0] : param;
0 commit comments