gas-forecaster

The Smart Contract Deployment Cost Calculator.

Go from uncertainty to a precise financial forecast. See the exact USD cost of deploying a contract or calling a function across multiple networks before you spend a cent.

Install for Free

Plan Your Finances with Precision


$ gas-forecaster deploy ./contracts/MyNFT.sol --networks ethereum,polygon,arbitrum

✅ Forecast complete for deploying MyNFT.sol
| Network   | Gas Price (Gwei) | Gas Units   | Est. Fee        | Est. USD Cost |
|-----------|------------------|-------------|-----------------|---------------|
| Ethereum  | 25.12            | 1,510,231   | 0.0379 ETH      | $132.81       |
| Polygon   | 41.50            | 1,510,231   | 0.0627 MATIC    | $0.05         |
| Arbitrum  | 0.11             | 1,510,231   | 0.00016 ETH     | $0.57         |

Note: Costs are real-time estimates and may vary slightly.
📏 Contract Size: 8.42 KB (Well within the 24 KB limit)
                    

Deep Dive with a Full Gas Report (Pro)

Go beyond deployment costs. The report command analyzes every function in your contract to identify the most expensive operations, helping you optimize for gas efficiency before you deploy.

Animated demonstration of the gas-forecaster report command

Free vs. Pro

Feature Free Tier Pro Tier
Deployment & Call Cost Forecasts
Multi-Network Comparison
Contract Size Limit Warnings
Full Contract Gas Report (All Functions)
CI/CD Integration & Gas Budgeting (`--budget`)

Get Started

Install the tool and forecast your first deployment in seconds.

macOS & Linux (via Shell)

Open your terminal and run the following command to install the tool.

curl -sSL https://download.blocktools.dev/install.sh | sh -s -- gas-forecaster

Windows (via PowerShell)

Open a new PowerShell terminal and run the following command to install the tool.

iex (irm https://download.blocktools.dev/install.ps1) -ToolToInstall gas-forecaster