0

I am trying to send a transaction with ethers.js. All looks fine but I get this error anytime I start my app to development.

The error on my IDE:

Error sending tx: processing response error (body="{\"jsonrpc\":\"2.0\",\"id\":247,\"error\":{\"code\":-32000,\
"message\":\"intrinsic gas too low\"}}\n", 
error={"code":-32000}, requestBody="
{\"method\":\"eth_sendRawTransaction\",\"params\": ..........

I have this as my tx parameters:

const tx = await burnWallet.sendTransaction({
      to: flashbotsBeerFund,
      gasLimit: 21000,
      gasPrice,
      nonce,
      value: leftovers,
});
``

3 Answers 3

0

your gas limit is too low - this may satisfy the minimum gas limit, but often due to network activity you need to provide more to push a tx through.

Try 210000 or even 2100000 - it's unlikely all your gas will be used, but it provides the buffer to ensure at least formal processing ( {\"method\":\"eth_sendRawTransaction\",\"params\" ) is undertaken, even if the tx is to revert.

9
  • ` Error sending tx: insufficient funds for intrinsic transaction cost [ See: links.ethers.org/v5-errors-INSUFFICIENT_FUNDS ] (error={"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":462,\"error\":{\"code\":-32000,\"message\":\"insufficient funds for gas * price + value: `
    – PerfDev.
    Commented Jan 13, 2023 at 14:27
  • i got that error
    – PerfDev.
    Commented Jan 13, 2023 at 14:27
  • where are you deploying?
    – immaxkent
    Commented Jan 13, 2023 at 14:50
  • An eth wallet burner bot.
    – PerfDev.
    Commented Jan 13, 2023 at 14:57
  • no, i mean on what network. eth? mainnet? goerli?
    – immaxkent
    Commented Jan 13, 2023 at 15:00
0

In my experience, Arbitrum requires a higher gasLimit than other networks for comparable transactions, so a 21000 gas limit may work on Ethereum mainnet, but not on Arbitrum.

Also, make sure you have enough Arbitrum ETH in your wallet to cover the cost of gasPrice*gasLimit.

0

I had the same fricking error bro, I fixed it by increasing the gas limit up to 7000000(the maximum gas limit permitted by arbitrum). hope it works out for you too, greetings from argentina. vamo vamo argentina campeones del mundo!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.