Gas: fees, action costs, tx estimate (Polygon, Base, Ethereum)
blazar_gasCurrent gas on Polygon (default), Base or Ethereum (chain param): base fee, priority fee, maxFeePerGas and native/USD, plus the cost in native coin and USD of common actions (approve, swap, aggregator swap; on Polygon also stake, claim, staking v2 exit). Optionally estimate one tx (from, to, data, value). Use before small trades: gas can exceed a small trade's value (often on Ethereum).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "blazar_gas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Optional: target of a tx to estimate. | |
| data | No | Optional calldata. | |
| from | No | Optional: sender of a tx to estimate. | |
| chain | No | Chain: "polygon" (default, chain 137), "base" (8453) or "ethereum" (1). BZB / BlazarSwap tools are Polygon only. | |
| value | No | Optional wei value. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| chain | No | ||
| polUsd | No | ||
| chainId | No | ||
| typical | No | ||
| nativeUsd | No | ||
| baseFeeGwei | No | ||
| blockNumber | No | ||
| transaction | No | ||
| gasPriceGwei | No | ||
| nativeSymbol | No | ||
| priorityFeeGwei | No | ||
| maxFeePerGasGwei | No |