estimate_gas
Calculate gas costs for blockchain transactions before execution to manage fees and avoid failed transactions across multiple networks.
Instructions
Estimate gas required for a transaction
Input Schema
Name | Required | Description | Default |
---|---|---|---|
blockchain | Yes | Blockchain name | |
network | No | Network type (defaults to mainnet) | |
transaction | Yes | Transaction object with from, to, data, value, etc. |
Input Schema (JSON Schema)
{
"properties": {
"blockchain": {
"description": "Blockchain name",
"type": "string"
},
"network": {
"description": "Network type (defaults to mainnet)",
"enum": [
"mainnet",
"testnet"
],
"type": "string"
},
"transaction": {
"description": "Transaction object with from, to, data, value, etc.",
"type": "object"
}
},
"required": [
"blockchain",
"transaction"
],
"type": "object"
}