Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Getting "insufficient funds" error although it seems like I have funds. #4169

Answered by MicaiahReid
benams asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @benams. Good question!

This is expected behavior. When you start Ganache with the wallet.unlockedAccounts option, Ganache is "unlocking" the account by creating a fake private key for the account. This works for most cases, but it does not work for eth_signTransaction. We should probably throw or notify the user of this case, so I've created #4170 to track that.

When you use eth_sendRawTransaction, the signature portion of the signed transaction data is used to compute the from address of the transaction. Because a fake private key was used to sign the transaction, the resultant from address is not the actual address that you sent the transaction with, it's whatever address is associa…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by benams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4168 on January 18, 2023 14:31.