THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Bitcoin CPFP Explained: Child Pays for Parent Fee Bumping

permalink THAMER
#ancestor-fee#bitcoin-cpfp#child-pays-for-parent#utxo

Child Pays for Parent (CPFP) is a Bitcoin fee-bumping technique in which a new transaction spends an unconfirmed output of an earlier transaction and contributes additional fees. Miners evaluating a package may prefer to include both transactions because the combined fee rate is attractive.

Parent and child relationship

Suppose transaction A pays a low fee and creates an output controlled by your wallet. Transaction B spends that output before A confirms. B must reference A's transaction ID and output index. If B pays enough additional fee, the combined package can become more competitive for block inclusion.

Package fee rate example

Assume the parent is 200 virtual bytes with a 200-sat fee, and the child is 150 virtual bytes with a 3,300-sat fee. Together they are 350 vB and pay 3,500 sat, producing an effective package fee rate of 10 sat/vB. This simplified example ignores additional ancestors, descendants, and local policy constraints.

Requirements and limitations

You must control an output that can be spent by the child. The child must be valid, and the node or mining infrastructure must accept the relevant ancestor/descendant relationships. A package can be limited by mempool policies, minimum relay rates, or package-relay support. CPFP is not a promise of confirmation and does not override consensus validity.

CPFP versus RBF

RBF creates a conflicting replacement for an unconfirmed transaction. CPFP creates a descendant that spends an output of the original transaction. CPFP can be useful when the parent cannot be replaced by the wallet, provided an eligible output is available.

Practical cautions

Estimate the combined package rate, not just the child's standalone rate. Avoid spending change prematurely if it creates unwanted privacy or wallet-management consequences. Confirm that the child is actually accepted and propagated.

Primary references

Bitcoin Core RPC documentation — https://bitcoincore.org/en/doc/
Bitcoin Core mempool policy — https://github.com/bitcoin/bitcoin/tree/master/src/policy
Bitcoin Developer Guide — https://developer.bitcoin.org/devguide/transactions.html

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects