← Back to Glossary

Script Type Heuristic

The Script Type Heuristic is utilized in chain analysis in order to determine which outputs of a transaction are sending to another party and which are returning bitcoin to the sender as change.

The Script Type Heuristic is utilized in chain analysis in order to determine which outputs of a transaction are sending to another party and which are returning bitcoin to the sender as change. This heuristic is based on the assumption that all wallets and users will use the same script type to receive payments and change outputs. For example, if a user receives a payment to a P2PKH address and then spends this output to create two outputs, one to a P2SH address and one to a P2PKH address, it can be assumed that the P2SH output now belongs to another party while the P2PKH output is a change output and still belongs to the sender.

Like all chain analysis heuristics, this is an assumption, and does not carry any certitude. Additionally, the Taproot upgrade and future upgrades to the Bitcoin protocol may render this heuristic useless as transaction types become less discernible.

Script Type Heuristic is a Bitcoin protocol specification that defines technical standards for how Bitcoin software operates. Onramp's Bitcoin glossary provides detailed educational resources on Script Type Heuristic and other protocol-level concepts to help investors understand the technology underpinning their Bitcoin holdings.

Frequently Asked Questions

What is Script Type Heuristic?

Script Type Heuristic is a technical standard in the Bitcoin protocol that specifies how certain operations or data structures should be implemented. It helps ensure interoperability between different Bitcoin software implementations.

Why is Script Type Heuristic important for Bitcoin?

Script Type Heuristic improves Bitcoin's functionality, security, or efficiency. Technical standards like this ensure that all participants in the Bitcoin network follow consistent rules, maintaining network consensus.

How does Script Type Heuristic affect Bitcoin investors?

While Script Type Heuristic operates at the protocol level, Onramp ensures that clients benefit from these technical improvements through secure, up-to-date infrastructure for Bitcoin custody and transactions.

Multi-Institution Custody

Are you ready?

The best security available for your Bitcoin without the technical burden. It’s time to upgrade.

Sign up