eth_estimateExecutionGas RPC Method
Parameters
object
object
Loading...
from
string
Loading...
to
string
REQUIRED
Loading...
gas
string
Loading...
gasPrice
string
Loading...
value
string
Loading...
data
string
Loading...
blockNumber/tag
string
REQUIRED
Loading...
Returns
quantity
Loading...
Request
1curl -X POST "https://docs-demo.optimism.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_estimateExecutionGas",6"params": [7{8"to": "0x6b175474e89094c44da98b954eedeac495271d0f",9"gas": "0x7a120",10"gasPrice": "0x0",11"value": "0x0",12"data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"13},14"latest"15],16"id": 117}'
1curl -X POST "https://docs-demo.optimism.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_estimateExecutionGas",6"params": [7{8"to": "0x6b175474e89094c44da98b954eedeac495271d0f",9"gas": "0x7a120",10"gasPrice": "0x0",11"value": "0x0",12"data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"13},14"latest"15],16"id": 117}'
Response
1{2"jsonrpc": "2.0",3"id": 1,4"result": "0x5208"5}
1{2"jsonrpc": "2.0",3"id": 1,4"result": "0x5208"5}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free