chore: added ensnode subgraph
2b574d79
1 file(s) · +4 −1
| 4 | 4 | import { privateKeyToAccount } from "viem/accounts"; |
|
| 5 | 5 | ||
| 6 | 6 | export const ensClient = createPublicClient({ |
|
| 7 | - | chain: addEnsContracts(mainnet), |
|
| 7 | + | chain: { |
|
| 8 | + | ...addEnsContracts(mainnet), |
|
| 9 | + | subgraphs: { ens: { url: "https://api.alpha.ensnode.io/subgraph" } }, |
|
| 10 | + | }, |
|
| 8 | 11 | transport: http(process.env.ETH_RPC_URL || "https://eth.drpc.org"), |
|
| 9 | 12 | }); |
|
| 10 | 13 |