estimate_gas
Calculate the gas cost for EVM-based blockchain transactions by providing recipient address, value, and optional data or network details.
Instructions
Estimate the gas cost for a transaction
Input Schema
Name | Required | Description | Default |
---|---|---|---|
data | No | The transaction data as a hex string | |
network | No | Network name or chain ID. Defaults to Ethereum mainnet. | |
to | Yes | The recipient address | |
value | No | The amount of ETH to send in ether (e.g., '0.1') |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"data": {
"description": "The transaction data as a hex string",
"type": "string"
},
"network": {
"description": "Network name or chain ID. Defaults to Ethereum mainnet.",
"type": "string"
},
"to": {
"description": "The recipient address",
"type": "string"
},
"value": {
"description": "The amount of ETH to send in ether (e.g., '0.1')",
"type": "string"
}
},
"required": [
"to"
],
"type": "object"
}