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 UTXO Snapshots: dumptxoutset, loadtxoutset, and Bitcoin Core RPC

permalink THAMER
#bitcoin#bitcoin-core-rpc#dumptxoutset#loadtxoutset#utxo

Bitcoin Core exposes snapshot-related RPC commands for operators who want to export a UTXO-set snapshot or initialize a compatible node from one. The commands serve different purposes: dumptxoutset creates a serialized snapshot, while loadtxoutset loads a recognized snapshot into an eligible node.

Exporting a snapshot

An operator can inspect the available options in the installed version of Bitcoin Core:

bitcoin-cli help dumptxoutset

A typical invocation uses a destination path and a supported snapshot mode, with exact parameters depending on the release:

bitcoin-cli dumptxoutset /path/to/utxo-snapshot.dat latest

The export captures a UTXO state at a defined base block. Its metadata includes information that allows the operator to identify the snapshot base and content. The file is not a complete copy of blocks, transactions, wallet keys, or wallet history.

Loading a snapshot

On a separate compatible node, first check the exact release's help:

bitcoin-cli help loadtxoutset
bitcoin-cli loadtxoutset /path/to/utxo-snapshot.dat

Not every arbitrary snapshot height is accepted. A compatible Bitcoin Core build must recognize the snapshot's base block and corresponding assumeutxo commitment for its network. A snapshot exported at the current tip of one node may not be loadable by another build unless that height is supported.

A node must also be in an appropriate initialization state; do not assume loadtxoutset can overwrite an already populated chainstate. Consult the installed release's command help and startup requirements before attempting an import.

What loading does not import

The snapshot does not contain the private keys needed to spend funds. It does not reconstruct wallet descriptors, address indexes, or the history of every wallet transaction. A wallet still needs its own descriptors or keys and appropriate rescan or indexing procedures to discover its transactions.

It also does not prove the entire pre-snapshot chain has been independently validated by the importing node. Background validation remains a separate process.

Operational checklist

Keep the Bitcoin network consistent: mainnet snapshots are not interchangeable with testnet or signet. Confirm disk capacity for the snapshot, current chainstate, and background validation. Use trusted file transfer and verify the base height and block hash. Record the Bitcoin Core version and monitor background validation progress rather than only the current tip.

Snapshot command syntax and availability evolve between releases. Always prefer bitcoin-cli help from the actual running binary over copying commands from an older tutorial.

Primary references

Bitcoin Core assumeutxo documentation: https://github.com/bitcoin/bitcoin/blob/master/doc/assumeutxo.md

Bitcoin Core RPC documentation: https://bitcoincore.org/en/doc/

Bitcoin Core repository: https://github.com/bitcoin/bitcoin

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