{"uid":"cap_kFPLXv4sU2QDGoQ8rf2O4","slug":"tokenguard-gas-history-api-612553a4","name":"TokenGuard Gas History API","description":"gas history data for AI agents.","url":"https://eltociear-tokenguard.hf.space/gas_history","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":[],"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jiIBhmM9_b28ujfoZRA-n","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns historical gas price data for blockchain networks, useful for DeFi analytics and transaction cost analysis","exampleAgentPrompt":"Can you pull the gas price history for Ethereum over the past 7 days so I can see how fees have been trending and figure out the cheapest time to make a transaction?","exampleUseCases":[{"title":"DeFi transaction cost optimization","prompt":"Show me the gas fee history for Ethereum over the last 24 hours — I want to know when prices dipped lowest so I can schedule my next DeFi trade at the cheapest time."},{"title":"Smart contract deployment cost analysis","prompt":"Pull historical gas prices for Ethereum for the past 30 days — I'm trying to figure out the average cost to deploy a smart contract and whether fees have been going up or down."},{"title":"On-chain analytics dashboard","prompt":"I need a week's worth of gas price data for my blockchain analytics dashboard — can you fetch the historical gwei values with timestamps so I can plot the trend?"}],"resultDescription":"A JSON object containing a time series of historical gas prices (in gwei or equivalent units), including timestamps and fee levels across the requested period for the specified blockchain network","failureModes":["Invalid or unsupported network identifier returns an error","Date/block range too large may result in timeout or truncated data","Missing required parameters (network, time range) returns 400-level error","Payment failure via x402 micropayment blocks request","Hugging Face Space may be cold-started, causing initial latency spike"],"whenToPreferThis":"Choose this endpoint when you need historical gas price data for on-chain cost analysis, DeFi strategy optimization, or transaction timing decisions. It is part of the broader TokenGuard crypto/DeFi data suite, making it ideal when you are already using other TokenGuard endpoints for ERC-20 safety or market data and want consistent data provenance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:01:17.491Z","isFirstParty":false}