{"uid":"cap_iTepGW7fKFO6_sW8l5Kqi","slug":"blockchain-info-cost-per-transaction-chart-api-5e5480fc","name":"Blockchain.info Cost-Per-Transaction Chart API","description":"Paid AI-agent access to Blockchain.com Explorer API","url":"https://api.blockchain.info/explorer-gateway-kt/x402/charts/cost-per-transaction?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cors":{"type":"boolean","default":false,"description":"Enable CORS headers"},"format":{"enum":["json","csv"],"type":"string","default":"json","description":"Response format:\n- `json` — Returns structured JSON with metadata and values\n- `csv` — Returns raw CSV data with timestamp and value columns (no metadata)\n"},"sampled":{"type":"boolean","default":true,"description":"Apply sampling to reduce data points"},"metadata":{"type":"boolean","default":false,"description":"Include metadata in response"},"timespan":{"type":"string","default":"1y","example":"1y","description":"Time period (e.g., \"24h\", \"7d\", \"1y\", \"3y\")"},"rollingAverage":{"type":"string","default":"8h","example":"8h","description":"Rolling average window (e.g., \"8h\", \"24h\")"}}},"responseSchema":{"type":"json","format":"application/json","example":{"name":"Cost per Transaction","unit":"USD","period":"day","status":"ok","values":[{"x":1704067200,"y":98.42},{"x":1704153600,"y":101.77}],"description":"A chart showing miners revenue divided by the number of transactions."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1K1j_wlu54nDaser18jfZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns historical Bitcoin cost-per-transaction chart data from Blockchain.com Explorer, with configurable timespan, rolling average, and output format","exampleAgentPrompt":"Pull the Bitcoin cost-per-transaction chart data from Blockchain.com for the last 3 years in JSON format, using a 24-hour rolling average.","exampleUseCases":[{"title":"Bitcoin fee trend research","prompt":"Can you fetch the Blockchain.com cost-per-transaction data for the past year with an 8-hour rolling average in JSON so I can see how Bitcoin transaction fees have trended?"},{"title":"Export fee history to CSV","prompt":"Get me the Bitcoin cost-per-transaction history for the last 7 days from Blockchain.com in CSV format with a 24-hour rolling average — I want to drop it into a spreadsheet."},{"title":"Long-term on-chain cost monitoring","prompt":"Grab the Blockchain.com cost-per-transaction chart for the last 3 years, using a 24-hour rolling average and include metadata in the response, so I can track how fees have evolved over multiple market cycles."}],"resultDescription":"Returns structured JSON (or raw CSV) containing a time-series of Bitcoin cost-per-transaction values. JSON responses include timestamps, values, and optionally metadata about the chart (units, description, etc.). CSV responses contain two columns: timestamp and value. Data may be sampled to reduce point density depending on the sampled parameter.","failureModes":["Invalid timespan format returns a 400 error","Unsupported format enum value returns a 400 error","Payment not provided or insufficient USDC balance returns a 402 Payment Required","Network timeout or upstream Blockchain.com Explorer outage returns a 503","Invalid rollingAverage window string returns a 400 error"],"whenToPreferThis":"Choose this endpoint when you need authoritative, time-series Bitcoin cost-per-transaction data sourced directly from Blockchain.com Explorer. It is the right choice when you need flexible timespan control (hours to years), rolling average smoothing, and the option to export as JSON or CSV. Prefer this over third-party aggregators when you want data directly from one of the most established Bitcoin blockchain explorers, and when you need microsecond-current fee cost trend data for analytics, research, or monitoring dashboards.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:40:45.283Z","isFirstParty":false,"canonicalSlug":"blockchain-info-cost-per-transaction-chart-api-5e5480fc"}