1s_estimate_gas
Estimate gas needed for a transaction before sending to set appropriate gas limits. Returns hex estimated gas; reverts provide revert reason.
Instructions
Estimate gas required for a transaction via eth_estimateGas. Use this before sending transactions to set appropriate gas limits. Returns the estimated gas as a hex value; reverts return the revert reason.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Ethereum address (0x...) | |
| data | No | ABI-encoded call data (hex) | |
| from | No | Sender address | |
| value | No | ETH value in wei (hex) | |
| network | No | Blockchain network: "ethereum" (default), "sepolia", "avax" |