{"uid":"cap_X6Oq48VKqWDrga0_lOTCD","slug":"btc-mining-economics-hashprice-hashrate-difficulty-revenue-split-cf954714","name":"BTC Mining Economics (Hashprice, Hashrate, Difficulty, Revenue Split)","description":"Bitcoin mining economics: Hashprice in USD and sats per TH/s per day, revenue split (subsidy vs fees) over the last 144 blocks, network hashrate and difficulty, and BTC price. Formula: dailyBlocksPerTh = (1e12 * 86400) / (diff * 2^32); hashprice = dailyBlocksPerTh * (totalRewardSat / 144).","url":"https://api.chainmarket-api.workers.dev/api/crypto/btc-mining-economics?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uqQLVQRDs1J2u9uoPOkw6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns Bitcoin mining economics: hashprice in USD and sats per TH/s/day, block reward split (subsidy vs fees) over last 144 blocks, network hashrate, difficulty, and BTC price.","exampleAgentPrompt":"What's the current Bitcoin hashprice in both USD and sats per TH/s per day, and how is the block reward split between the base subsidy and transaction fees over the last 144 blocks?","exampleUseCases":[{"title":"Mining profitability dashboard refresh","prompt":"Can you pull the latest Bitcoin hashprice and tell me how much a miner with 100 TH/s would earn per day right now, plus what percentage of that comes from fees versus the block subsidy?"},{"title":"Network difficulty and hashrate monitoring","prompt":"What are the current Bitcoin network difficulty and total hashrate? I want to track whether the network is growing or contracting."},{"title":"Post-halving revenue split analysis","prompt":"Now that the halving has happened, what fraction of the last 144 blocks' total reward came from transaction fees versus the block subsidy? I need to understand how much miners are relying on fees."}],"resultDescription":"Returns a JSON object containing: hashprice in USD per TH/s per day, hashprice in sats per TH/s per day, total block reward over the last 144 blocks broken down into subsidy and fee components (with percentages), current network hashrate (EH/s or H/s), current difficulty, and spot BTC price in USD.","failureModes":["Upstream BTC node or data source unavailable — returns 5xx or empty response","Stale data if the Cloudflare Worker cache hasn't refreshed recently","Rate limiting or payment verification failure for x402-gated calls","Network timeout if the worker can't reach its upstream source within the response window"],"whenToPreferThis":"Choose this endpoint when you need a single, pre-computed snapshot of Bitcoin mining economics — hashprice, revenue split, difficulty, and BTC price — without having to aggregate raw blockchain data yourself. Ideal for mining profitability calculators, miner dashboards, or any agent that needs current BTC mining metrics in one call. Prefer it over raw RPC endpoints when you want the hashprice formula already applied.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T12:31:09.349Z","isFirstParty":false,"canonicalSlug":"btc-mining-economics-hashprice-hashrate-difficulty-revenue-split-cf954714"}