Last updated 2 months ago
object - object
object
Transaction call object.
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' --header 'Content-Type: application/json' --data-raw '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0xFE3B557E8Fb62b89F4916B721be55cEb828dBd73", "to": "0x44Aa93095D6749A706051658B970b941c72c1D53", "value": "0x1"}], "id": "getblock.io"}'
{ "error": { "code": -32000, "message": "rpc error: code = Internal desc = insufficient balance for transfer" }, "id": "getblock.io", "jsonrpc": "2.0" }
Example code for the eth_estimateGas json-rpc method. Сomplete guide on how to use eth_estimateGas json-rpc in GetBlock.io Web3 documentation.