{"uid":"cap_Wfj1M7huEstptiktpR5xC","slug":"diamond-cpfp-budget-batch-calculator-46a9d510","name":"Diamond CPFP Budget Batch Calculator","description":"Bitcoin address risk checks (sanctions, ransomware, laundering patterns), address watch alerts, live whale and AML feeds, a market pulse, fee estimates, next-block projections, mining-pool share and transaction tools from 0.002 USDC. Pay per call with Lightning or USDC - no account.","url":"https://diamond.tail1b5f86.ts.net/api/x402/cpfp?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["package"],"properties":{"package":{"type":"string","maxLength":255,"description":"txid:target_sat_vb:child_vbytes[,child_vbytes...]. Target 0.001..10000 sat/vB (up to 3 decimals), one to 25 unique child sizes of 60..100000 vbytes."}},"additionalProperties":false}},"additionalProperties":false}}},"responseSchema":{"type":"json","example":{"as_of":"<UTC timestamp>","plans":[],"terms":"A fee arithmetic estimate, not a transaction, broadcast, relay-policy validation or confirmation guarantee. Assumes one child spending an available output of the selected transaction and no additional unconfirmed inputs. Child size is buyer-supplied. Uses actual base fees of the observed transaction and its ancestors, excluding local fee deltas. Other miners and nodes can have different views and policies. Check output ownership, available value, descendants and package policy. Paid replay preserves the original snapshot; recheck current conditions before acting.","product":"cpfp_budget_batch"}},"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_FTSBKHwQeJ6v1hU__emjf","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":"Calculates the fee budget needed to Child-Pays-For-Parent (CPFP) a stuck Bitcoin transaction to a target fee rate, across one or more child transaction sizes.","exampleAgentPrompt":"My Bitcoin transaction abc123def456... has been stuck for hours — can you calculate the CPFP fee budget I'd need to bump it to 5 sat/vB, assuming my child transaction will be 250 vbytes?","exampleUseCases":[{"title":"Unstick a stuck Bitcoin payment","prompt":"My Bitcoin transaction abc123def456 is stuck in the mempool — figure out how much fee I need to add via CPFP to get it to 10 sat/vB, assuming my child tx is 150 vbytes."},{"title":"Compare child sizes for fee planning","prompt":"I want to CPFP my Bitcoin tx deadbeef1234 to reach 3.5 sat/vB — can you calculate the required fee budget for child transaction sizes of 100, 200, and 400 vbytes so I can compare options?"},{"title":"Urgent confirmation fee estimate","prompt":"My Bitcoin transaction f00dface9876 needs to confirm in the next block — estimate the CPFP budget to hit 50 sat/vB with a 250 vbyte child transaction."}],"resultDescription":"Returns a JSON object containing a timestamp (`as_of`), an array of fee budget `plans` for each requested child size, the `product` identifier (`cpfp_budget_batch`), and a `terms` disclaimer clarifying that this is a fee arithmetic estimate only — not a broadcast, relay-policy validation, or confirmation guarantee.","failureModes":["Invalid or unrecognized txid returns an error or empty plans array","Target fee rate outside the allowed range (0.001–10000 sat/vB) causes a validation error","Child vbyte sizes outside 60–100000 range are rejected","More than 25 child sizes in a single request returns an error","Malformed package string format causes a parse error","Transaction not found in the mempool or UTXO set may yield empty or stale results","Payment not completed via x402 results in a 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call fee arithmetic estimate for CPFP without setting up an account. It is ideal for batch comparison across multiple child transaction sizes (up to 25) in a single call. Prefer this over manual mempool calculators when you need programmatic access to CPFP budget figures, especially when already operating in a Bitcoin/Lightning payment context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-05T18:33:48.040Z","isFirstParty":false,"canonicalSlug":"diamond-cpfp-budget-batch-calculator-46a9d510"}