From fcf2e7f133f511a8aa4549dc132a1d21f4d59e6d Mon Sep 17 00:00:00 2001 From: Tempe Techie <95053628+tempe-techie@users.noreply.github.com> Date: Tue, 10 Dec 2024 20:10:28 +0100 Subject: [PATCH] custom rpc --- src/App.vue | 2 +- src/hooks/useChainHelpers.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index e7441e9..ae44a6a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -170,7 +170,7 @@ export default { const coinbaseConnector = new CoinbaseWalletConnector({ appName: "DegenName.lol", - jsonRpcUrl: "https://rpc.degen.tips", + jsonRpcUrl: "https://degen-mainnet.g.alchemy.com/v2/Vn3jRzC23Ej4LYpz_TVNs20T9r-LigaO", }); const mmConnector = new MetaMaskConnector({ diff --git a/src/hooks/useChainHelpers.ts b/src/hooks/useChainHelpers.ts index b0fb83b..f5f6dce 100644 --- a/src/hooks/useChainHelpers.ts +++ b/src/hooks/useChainHelpers.ts @@ -14,7 +14,7 @@ export default function useChainHelpers() { function getFallbackProvider(networkId) { let chain = chains.find(chain => chain.chainId == networkId); - let urls = [chain.rpc2]; + let urls = [chain.rpc1]; if (urls) { const providers = urls.map(url => new ethers.providers.JsonRpcProvider(url)); @@ -79,7 +79,7 @@ const chains = [ chainId: 666666666, name: "Degen", currency: "DEGEN", - rpc1: "https://rpc.degen.tips", + rpc1: "https://degen-mainnet.g.alchemy.com/v2/Vn3jRzC23Ej4LYpz_TVNs20T9r-LigaO", rpc2: "https://rpc.degen.tips", blockExplorer: "https://explorer.degen.tips" }