-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
insufficient funds for gas * price + value #103
Comments
@AndreyNovikov2909 Did you fix the issue? I am also facing the same problem. Signing transaction is not working well it seems. I checked the same values with javascript code the hash of signed transaction is different from the swift code.I believe the r s v values are not calculated properly in the swift code. Please let me know if you have any developments. |
@AndreyNovikov2909 It worked for me, try for yourself. Please suggest me any better approach. I have compared it with the Web3.js javascript implementation. Only 6 properties to be used for signing the transaction they are as below:
|
You need to estimate gas before sending tx to the network.
|
Thanks @podkovyrin I am through with this issue. As I mentioned in my previous reply. There is an issue with the Transaction signature. So, Implemented the changes. |
This looks kinda dangerous, you need to include chain id in the signature otherwise it might lead to replay attacks. See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md |
Hey sorry, the code was not updated. I faced the issue with the chain id too. I changed the method to include it.
RLPItem needs to be as below.
|
Hello
I always get this error when signing the transaction "insufficient funds for gas * price + value" I understand that the problem is not with gas, but in the private key with which I sign the transaction, what could be the problem? Methods that do not require gas are successful, I can say for sure that there is a sufficient amount on my wallet - 0x92Ddc4493d6839811F047D7729b2cFcB4DA3780F. if i don't sign the transaction i call the send method directly i get this error - "The method eth_sendTransaction does not exist/is not available"
// code
// the mint method of the smatr contract
// the transfer method of the smatr contract
The text was updated successfully, but these errors were encountered: