calculate_tx_cost
Estimate transaction cost in native tokens and USD for any EVM network by providing gas limit, with optional network and gas price settings.
Instructions
Calculate the cost of a transaction in native tokens and USD
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Network name (e.g. 'bsc', 'opbnb', 'ethereum', 'base', etc.) or chain ID. Supports others main popular networks. Defaults to BSC mainnet. | bsc |
| gasLimit | Yes | Gas limit for the transaction | |
| gasPriceGwei | No | Gas price in gwei (uses current if not provided) |