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 Core Wallet RPC: Descriptors, Watch-Only Wallets, and PSBT

permalink THAMER
#bitcoin-core-wallet-rpc#descriptors#listunspent#psbt#watch-only

Bitcoin Core wallet RPC is separate from the node's consensus-validation RPC. Wallet methods operate on a specific loaded wallet, while node methods inspect chain state. Descriptor wallets describe which scripts and addresses a wallet tracks; the presence of a descriptor does not necessarily mean the wallet can sign.

Wallet selection and descriptors

A wallet can be loaded with loadwallet and addressed through a wallet-specific RPC endpoint. listwallets reports loaded wallets, while listwalletdir can enumerate wallet directory entries. getwalletinfo provides information about the selected wallet. Behavior and available methods depend on the Bitcoin Core release and wallet type.

Descriptors encode script templates and key derivation information. listdescriptors and importdescriptors support descriptor-oriented workflows. Public descriptors can be used for watch-only monitoring; private keys are required for local signing unless an external signer is used.

Watch-only is not signing authority

A wallet that tracks addresses or scripts without spend keys can detect relevant UTXOs and balances after the necessary scans. It cannot create valid spending signatures solely from public descriptors. Some operations may need a rescan, and historical scans depend on block availability and the node's configuration.

PSBT workflow

Partially Signed Bitcoin Transactions (PSBTs) separate transaction construction, signature collection, and finalization. Bitcoin Core provides RPC methods including walletcreatefundedpsbt, walletprocesspsbt, finalizepsbt, and decodepsbt.

A typical workflow is to build a PSBT with the desired outputs and fee policy, inspect it, obtain signatures from an authorized signer, finalize it, and only then broadcast the final raw transaction. Never assume a PSBT is safe merely because it parses: verify outputs, amounts, change, fees, derivation paths, and intended network before signing.

Safety and versioning

Wallet RPC method availability and options can change across Bitcoin Core releases. Consult the RPC documentation for the exact deployed version. Do not give a public web application unrestricted access to wallet RPC. Use explicit authorization and transaction reconciliation for any method that can spend funds.

Primary references

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

BIP174 — PSBT: https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki

BIP380 — Output Script Descriptors: https://github.com/bitcoin/bips/blob/master/bip-0380.mediawiki

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