question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to sign transaction in custom RPC using walletconnect

See original GitHub issue

As per documentation, I am using walletconnect with customRPC

https://docs.walletconnect.org/quick-start/dapps/web3-provider#custom-rpc-url

I am sharing some snippets to connect it with our custom provider called ‘eraswap’

import WalletConnectProvider from "@walletconnect/web3-provider";
import { providers } from "ethers"



export async function loadWallet() {
  //  Create WalletConnect Provider
  const walletConnectProvider = new WalletConnectProvider({
    rpc : { 5196 : 'https://testnet.eraswap.network'},
    infuraId: "b81341e3ab894360a84f3fa640ab985e" ,
    qrcode: true
  }); 
  await walletConnectProvider.enable();
  const provider = new providers.Web3Provider(walletConnectProvider)
  console.log(provider.getSigner())
  const wallet = await provider.getSigner()
  return wallet;
}

but I am getting these error image

I am using modified version of https://test.walletconnect.org/ in which eraswap RPC network also exist

mention code is for added data in Ichaindata

{
    name: "Eraswap Testnet",
    short_name: "esn",
    chain: "ESN",
    network: "testnet",
    chain_id: 5196,
    network_id: 5196,
    rpc_url: "https://testnet.eraswap.network",
    native_currency: {
      symbol: "ES",
      name: "Eraswap",
      decimals: "18",
      contractAddress: "",
      balance: "",
    },
  },

the updated version of test wallet is https://esnwallet.vercel.app/. https://github.com/pranjal1127/eswallet/blob/master/src/constants/chains.ts#L4-L19

I have also tried all instructions of this following discussion https://github.com/ethers-io/ethers.js/issues/775

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
vernonjohnsoncommented, Jan 24, 2022

Big issue, needs to be fixed. Walletconnect is pretty much unusable on Polygon at this point

1reaction
ericHgorskicommented, Jan 24, 2022

Still experiencing this issue in 2022! Attempting to use a polygon RPC provider. Is there a fix in the works?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to conduct transactions once connected to the wallet ...
Unable to conduct transactions once connected to the wallet using WalletConnect. We use moralis to connect to the wallet, and once we connected ......
Read more >
Web3 Provider - WalletConnect Docs
First, instantiate your WalletConnect web3-provider using the following options: Infura or Custom RPC mapping. Infura; Custom RPC.
Read more >
Wallet Connect: No RPC Url available for chainId: 137
You can try using this RPC URL - https://matic-mainnet.chainstacklabs.com. More references can be found here ...
Read more >
Add WalletConnect to a DApp - Moonbeam Docs
If you already have a DApp with WalletConnect support, and just want to add ... rpc_url: "https://rpc.api.moonbeam.network", native_currency: { symbol: ...
Read more >
WalletConnect - Algorand Developer Portal
Algorand provides a custom WalletConnect schema and a quick start guide for ... suggestedParams, }); // Sign transaction // txns is an array...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found