ethers.js
ethers.js copied to clipboard
error -32000, processing response error
Other function from the same contract work fine...
DATAPROTOCOL_CONTRACT.getUserAccountData(wallet).then((res:any[]) => {
console.log(res)
})
This one throw me this error. Someone can explain?
(node:23475) UnhandledPromiseRejectionWarning: Error: missing revert data in call exception (error={"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":44,\"error\":{\"code\":-32000,\"message\":\"execution reverted\"}}","error":{"code":-32000},"requestBody":"{\"method\":\"eth_call\",\"params\":[{\"to\":\"0x7551b5d2763519d4e37e8b81929d336de671d46d\",\"data\":\"0xbf92857c000000000000000000000000c7ee2b140340801252e20e40c8f27a4bfe57d28f\"},\"latest\"],\"id\":44,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://polygon-rpc.com"}, data="0x", code=CALL_EXCEPTION, version=providers/5.5.0)
Did you solve this? Currently facing something same issue
Up this is an error for me too. I can't send polygon via alchemy.
Can you include the code you are using to create the provider? Also, what version of ethers are you using?
Yeah it's like this
let rpcProvider = 'https://eth-mainnet.alchemyapi.io/v2/xxxxxxx';
const provider = new ethers.providers.JsonRpcProvider(rpcProvider);
const wallet = new ethers.Wallet(priv, provider);
tx = await wallet.sendTransaction({
to: user.pub,
value: ethers.utils.parseEther(amount),
});
"ethers": "^5.3.1",
@nickjuntilla can you try once using latest ethers version? I can confirm that sending txs to polygon using alchemy, definitely has been working these days.
Hy @nickjuntilla does this work? I used a similar thing and it doesn't work on Mumbai. Using alchemy.
ethers version is 5.7.0
@yanukadeneth99 I believe I ended up using ethers to estimate the gas in a separate step to make it work.
For me, polygon transactions took waaaay more time. So I had to add maxFeePerGas
and maxPriorityFeePerGas
in. After that, it works sweetly.