searcher-sponsored-tx icon indicating copy to clipboard operation
searcher-sponsored-tx copied to clipboard

Cannot estimate Gas

Open evmjunkie opened this issue 3 years ago • 11 comments

Hey guys, I am always getting the error: "Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={"reason":"processing response error","code":"SERVER_ERROR","body":"{"jsonrpc": "2.0", "id": 45, "error": {"code": -32000, "message": "execution reverted"}}" Its based on the fact that the RPCs cannot estimate gas on accounts with no ether in it. So I am using this script basically because the wallet contains no ether in it, but on the other side i cannot estimate gas with no ether. What should I do?

evmjunkie avatar Dec 03 '21 16:12 evmjunkie

I’m having the same issue here

osas41 avatar May 05 '22 23:05 osas41

You can check the configuration example here: https://ethereum.stackexchange.com/questions/122688/how-to-create-and-send-flashbot-bsc/127939#127939

Hope it help!

PaulGG-Code avatar May 10 '22 13:05 PaulGG-Code

@PaulGG-Code were you able to get it to work on BSC?

wombatlabs avatar May 19 '22 19:05 wombatlabs

Yes @blockinator I've been able to test it on most EVM's Let me know if you need more help

PaulGG-Code avatar May 20 '22 06:05 PaulGG-Code

hello @PaulGG-Code can you share your successful repo with bsc please. it's been hell trying to figure it out

Oluwatobilobaoke avatar May 20 '22 10:05 Oluwatobilobaoke

@PaulGG-Code, this is the error I am getting:

Simulation failed, error code: -32000
[2022-05-20T17:07:16.706Z] err: nonce too high: address ADDRESS_SPONSER, tx: 179 state: 0; txhash 0xfe9eb67c62ffadb54d0207bebdd0e3b3f2d21d1ed72429b78661c495ce1cd6f2
[2022-05-20T17:07:16.721Z] (node:19191) UnhandledPromiseRejectionWarning: Error: Failed to simulate response
    at Object.checkSimulation (/PATH_DIRECTORY/searcher-sponsored-tx/src/utils.ts:47:9)
    at processTicksAndRejections (internal/process/task_queues.js:94:5)
    at main (/PATH_DIRECTORY/searcher-sponsored-tx/src/index.ts:104:29)
[2022-05-20T17:07:16.721Z] (node:19191) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
[2022-05-20T17:07:16.721Z] (node:19191) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

To fix the err: nonce too high I tried resetting MetaMask but that didn't do anything.

wombatlabs avatar May 20 '22 17:05 wombatlabs

yes i need help also on this \

12r3r3 avatar May 21 '22 16:05 12r3r3

Same problem. "Error: cannot estimate gas; transaction may fail or may require manual gas limit "

MataAzi avatar Jun 09 '22 08:06 MataAzi

I keep getting NOT INCLUDED IN BLOCK when using the TransferERC20 method. I set PRIORITY_GAS_PRICE to 3000

Sirelor avatar Aug 13 '22 14:08 Sirelor

Some error, i've changed gas settings many times, i even set both GWEI.mul to (31) (gas price) and gas price to 150000 (eth gas price was 6gwei) image image image

liw92 avatar Sep 25 '22 00:09 liw92

Reference in ne

Yes @blockinator I've been able to test it on most EVM's Let me know if you need more help

Hello boss, i need help in making it work on other EVM

rashtug2 avatar Sep 26 '22 02:09 rashtug2