estimate-gas
Calculate transaction gas requirements without sending to the network. Input recipient address, contract call data, value, and fee details to estimate costs accurately.
Instructions
Estimate the gas necessary to complete a transaction without submitting it to the network.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chainId | No | Chain ID to validate against before sending transaction. | |
data | No | A contract hashed method call with encoded args. | |
maxFeePerGas | No | Total fee per gas in wei, inclusive of maxPriorityFeePerGas. | |
maxPriorityFeePerGas | No | Max priority fee per gas in wei. | |
to | Yes | The transaction recipient or contract address. | |
value | No | Value in wei sent with this transaction. |