eth_estimateGas - Polygon
Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain.
curl https://polygon.api.watchdata.io/node/jsonrpc?api_key=your_api_key
-X POST \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "eth_estimateGas",
"params": [
{
"from": "0xa53d90b608c930cb8cdff22048dc942708c4f263",
"to": "0xce5f94f814906fbe7cd151c6ceb9095325612245",
}
],
"id": 1
}'URL: https://polygon.api.watchdata.io/node/jsonrpc?api_key=your_api_key
RequestType: POST
Body:
{
"jsonrpc": "2.0",
"method": "eth_estimateGas",
"params": [
{
"from": "0xa53d90b608c930cb8cdff22048dc942708c4f263",
"to": "0xce5f94f814906fbe7cd151c6ceb9095325612245"
}
],
"id": 1
}Last updated