A phone, laptop and signing device arranged as three different ways to use a Bitcoin wallet, editorial illustration
BIP 49 / ADDRESSES

SegWit inside a familiar address.

Purpose 49 defines accounts for P2WPKH nested inside P2SH.

Read the explanation
← All standards

Why it exists

BIP 49 defines single-key SegWit accounts whose witness programs are wrapped inside pay-to-script-hash outputs. This allowed a SegWit wallet to receive through the familiar P2SH address format while keeping its account keys separate from legacy accounts.

How it works

The derivation hierarchy uses purpose 49'. For mainnet account zero, the first receiving key comes from m/49'/0'/0'/0/0. Its public-key hash forms a P2WPKH witness program, which is then wrapped inside P2SH.

The receiving address is a mainnet P2SH address beginning with 3. During spending, the redeem script reveals the witness program and the signature and public key appear in the witness. BIP 49 specifies ypub and yprv prefixes for extended keys that signal this account convention.

PUT IT IN CONTEXT

A practical example

When restoring a wallet described as nested SegWit, choosing purpose 84' instead derives different keys and outputs. The descriptor form sh(wpkh(KEY)) expresses the nesting explicitly; KEY here is a placeholder, not a complete importable descriptor.

What to keep in mind

An address beginning with 3 is not necessarily a BIP 49 address: P2SH can contain other scripts, including multisig. Nested SegWit also has more wrapping overhead than native SegWit. Keep the account convention with the recovery record.

Status & implementation

The official status is Deployed. Core documents sh(wpkh()) support, but descriptor support and automatic discovery of a seed-based purpose-49 account are different features. A compatible receiving address does not establish compatibility of an entire backup workflow.

Specification status: Deployed · Sources checked 13 November 2026

Read the sources

Put the standard in context.

Explore the practical guide

Find your next answer.

Search the complete field guide · Esc to close