estimate_gas
Calculate the gas cost for Hedera transactions by specifying sender, receiver, network, and optional details like value or contract data using the HashPilot MCP server.
Instructions
Estimate gas for a transaction
Input Schema
Name | Required | Description | Default |
---|---|---|---|
data | No | Transaction data for contract calls (optional) | |
from | Yes | From address (Hedera account ID or 0x address) | |
network | No | Network to query (mainnet, testnet, previewnet). Default: testnet | |
to | Yes | To address (Hedera account ID or 0x address) | |
value | No | Amount in HBAR to send (optional) |
Input Schema (JSON Schema)
{
"properties": {
"data": {
"description": "Transaction data for contract calls (optional)",
"type": "string"
},
"from": {
"description": "From address (Hedera account ID or 0x address)",
"type": "string"
},
"network": {
"description": "Network to query (mainnet, testnet, previewnet). Default: testnet",
"enum": [
"mainnet",
"testnet",
"previewnet"
],
"type": "string"
},
"to": {
"description": "To address (Hedera account ID or 0x address)",
"type": "string"
},
"value": {
"description": "Amount in HBAR to send (optional)",
"type": "string"
}
},
"required": [
"from",
"to"
],
"type": "object"
}