Replies: 2 comments 16 replies
-
That error means you don’t have a sufficient balance at the You must have enough funds to cover:
And there are likely things I forgot to mention, but the intrinsic cost of a transaction must be met otherwise the transaction will be ignore (to prevent DoS) and will not be forwarded to the gossip network. The error you are getting is coming directly from the node you are connected to. Ethers is just passing the error along to you; If you compare your balance in that account to the value + gasPrice * gasLimit I suspect you will see it isn’t enough to cover the cost of the transaction. If it is, include the from address and network and I can check the maths. :) Does that make sense? |
Beta Was this translation helpful? Give feedback.
-
hey Richard. @ricmoo. I wanted to ask a slightly different question, but probably related to this about hashes. I'm horrible at cryptography, so forgive me my noobness. hacker creates a tx object: const tx = ethers.Transaction.from({
to: 'hackerAddress',
signature: ''
}) and in the signature, just puts some random signature directly and then broadcasts this tx. What geth node does is receives this, decodes it(i.e unmarshalls) and tries to recover the address. geth uses |
Beta Was this translation helpful? Give feedback.
-
Ethers Version
6.11.1
Search Terms
No response
Describe the Problem
I'm trying to let metamask sign a transaction using
eth_sign
and then broadcast it. I knoweth_sign
of metamask is dangerous, but just playing with it, nothing more.Code Snippet
Then,
The error is caused by broadcastTransaction, but I'm not sure what I'm doing wrong. I definitely got the balance on the
from
address andprovider
doesn't need any balanceErrors
Error: insufficient funds for intrinsic transaction cost (transaction="0xf8671780830249f09475889e6cbe19b2bc4cfc29ef5c78a03e1e1000098705543df729c000801ba0b753cef2ef382bfd3fa0be57b935b1a2a4f58000d9ccf08a15986ac576762013a037555651826e4f52d2e048ea64f182a7b13197ef2db26527f1b5df227a9d7092", info={ "error": { "code": -32000, "message": "insufficient funds for gas * price + value: balance 0, tx cost 1500000000000000, overshot 1500000000000000" } }, code=INSUFFICIENT_FUNDS, version=6.11.1)
Environment
Ethereum (mainnet/ropsten/rinkeby/goerli)
Environment (Other)
No response
Beta Was this translation helpful? Give feedback.
All reactions