lessmore92 / php-erc20

The simple way to interact with Ethereum ERC20 token.
MIT License
26 stars 26 forks source link

How to handle gasPrice and Limits #4

Closed nathanielajayi7 closed 3 years ago

nathanielajayi7 commented 3 years ago

I'm trying to send Ethereum, thanks for the help last time, but I keep getting this error: "{"success":false,"message":"insufficient funds for gas * price + value"}"

The message is the reason for failure. I have $1.01 worth of ETH, I know it's small but I wanted to send half of that to my other wallet to see if the transfer send() method completes successfully. Maybe the value I input is too big?

The amount is multiplied by the 18th power of 10, I assume because value is in Wei?

nathanielajayi7 commented 3 years ago

I've solved this. The gasLimit and gasPrice was the problem.