Unable to sign transaction in custom RPC using walletconnect
See original GitHub issueAs 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
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:
- Created 3 years ago
- Reactions:3
- Comments:8 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Big issue, needs to be fixed. Walletconnect is pretty much unusable on Polygon at this point
Still experiencing this issue in 2022! Attempting to use a polygon RPC provider. Is there a fix in the works?