How do you calculate how much gas to use in a send_transaction?
Amount: 0x670479cb5385800, // (decimal: 463949500000000000 wei 0.4639495 eth)
Gas price: 0x6ddd00 // (decimal: 7200000 wei)
Gas: 0x15F90 // (decimal: 90000)
What I did was the gas price I use for base is 10.
Then I know the send_transaction RPC makes the gas default to 90,000 and returns the difference. So I set my gas to 90,000.
To get my gas price I did 90,000 * 10. Then I multiplied by 8 (idk just a magic number) to get the gas price value I have. What did I do wrong?
I keep getting error:
code: -32000, message: 'insufficient funds for gas * price + value' } }
What am I doing wrong?