gas_timing
Tell agents whether now is a good or bad time to transact, based on
historical gas patterns.
Compares current gas to 24-hour and 7-day averages, identifies the
cheapest hours of the day, and estimates reference transaction costs.
Args:
api_key: Your PreFlyte API key (required).
chain: Chain name — "ethereum" or "arbitrum".
Returns:
Dictionary with current gas, 24h/7d context, timing assessment
with cheapest hours, and reference transaction costs in USD.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"api_key": "<api_key>",
"chain": "<chain>"
},
"name": "gas_timing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| api_key | Yes |