> ## Content Index
> Fetch the complete content index at: https://cnainbridge.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# Verify a Bitcoin UTXO: unspent doesn't mean spendable
- URL: https://cnainbridge.org/verify-utxo-with-node/
- Published: 2026-11-26T10:31:21.000Z
- Updated: 2026-11-26T14:30:48.000Z
- Description: Check a specific transaction output locally, then distinguish its unspent state from wallet recognition, available signers and spending conditions.
- Author: Colin Hensley
- Tags: Bitcoin nodes, #troubleshooting

Use `gettxout` with a transaction ID and output index to check whether a specific Bitcoin output is unspent in your node's selected view. That result doesn't prove your wallet has the required keys or can satisfy every spending condition. I'd check the output's current state first, then inspect the intended wallet and signer arrangement without exporting keys or sending coins.

## Identify the output and the node you're asking

A UTXO is an unspent transaction output. Its identity is an outpoint: the creating transaction's `txid` plus that output's zero-based index, usually called `vout` or `n`. A transaction can have several outputs. Its ID alone doesn't tell Core which one to inspect, and an address can be associated with several different outputs.

Work from a payment record you already control. Check the intended output's amount and script, rather than assuming the first output is the recipient or that an unfamiliar one must belong to someone else. Change can return to another address in the same wallet. If you have an available block, [expanded block transactions at verbosity 2 expose their output records](https://bitcoincore.org/en/doc/32.0.0/rpc/blockchain/getblock/?ref=cnainbridge.org); use the transaction's `txid` and the selected output's `n`, not the block hash or the transaction's witness ID.

Use your own trusted local node on the correct Bitcoin network. The [blockchain status response](https://bitcoincore.org/en/doc/32.0.0/rpc/blockchain/getblockchaininfo/?ref=cnainbridge.org) identifies `chain`, `blocks`, `headers`, `bestblockhash` and synchronization information. Resolve an ongoing initial sync, network mismatch or stale disconnected node before relying on its answer. Matching block and header heights alone doesn't establish that the node has current network information.

If you bootstrapped with AssumeUTXO, distinguish current-tip access from completed background validation. Core's [snapshot usage guidance](https://github.com/bitcoin/bitcoin/blob/v32.1/doc/assumeutxo.md?ref=cnainbridge.org) describes that temporary distinction. A current lookup doesn't itself certify the snapshot's historical validation. For the surrounding installation and connection prerequisites, follow the [Bitcoin node setup route](https://cnainbridge.org/run-bitcoin-node/).

If you only have an address, don't put it in the transaction-ID argument. For an address already tracked by your wallet, inspect its unspent-output records to obtain the outpoints. A separate [descriptor-based UTXO-set scan](https://bitcoincore.org/en/doc/32.0.0/rpc/blockchain/scantxoutset/?ref=cnainbridge.org) can find matching current chain outputs without importing private keys; it doesn't recover full wallet history. Preserve the original script and descriptor range rather than guessing a different address type.

## Ask gettxout for the current output

The following are documented command examples for the Core 32 series, with the behavior checked against Core 32.1\. Use your node's normal local authentication and matching network options. Replace `TXID` and `VOUT` with the actual transaction ID and numeric output index before using the last line.

```
bitcoin-cli getblockchaininfo
bitcoin-cli help gettxout
bitcoin-cli gettxout "TXID" VOUT true
```

These calls don't sign or broadcast a transaction. In the GUI Console, omit the `bitcoin-cli` prefix; `help gettxout` displays the method help. Read commands before entering them. Core's [RPC security guidance](https://github.com/bitcoin/bitcoin/blob/v32.1/doc/JSON-RPC-interface.md?ref=cnainbridge.org#security) warns against exposing administrative RPC to the public internet.

![Bitcoin Core Console with help gettxout in the bottom input field and the command safety warning above it](https://storage.ghost.io/c/a1/4d/a14da2a0-3ee7-4807-afb1-3b1f503a3916/content/images/2026/11/chain-bridge-verify-utxo-with-node-inline.webp)

Enter `help gettxout` without the command-line prefix. The input shown hasn't been executed. Select Enlarge image to read the details.

The [gettxout response](https://bitcoincore.org/en/doc/32.0.0/rpc/blockchain/gettxout/?ref=cnainbridge.org) contains output details when the coin is found: `value` in BTC, `confirmations`, `scriptPubKey`, `coinbase` and the chain tip's `bestblock`. Preserve the script hex. An `address` is optional and appears only when Core can identify a well-defined address for the script.

This lookup works against the node's coin view; it isn't a search of your wallet's private keys. It doesn't require importing an address into a wallet or enabling a transaction index just to inspect a known outpoint. Core's [gettxout implementation](https://github.com/bitcoin/bitcoin/blob/v32.1/src/rpc/blockchain.cpp?ref=cnainbridge.org) reads the active chainstate and, when requested, its mempool overlay.

## Compare the chain and mempool views

The final `true` includes the node's mempool and is also the default. A confirmed output spent by a transaction in that mempool is therefore absent from the result. To inspect the chain UTXO view without those mempool changes, repeat the same outpoint with `false`:

```
bitcoin-cli gettxout "TXID" VOUT true
bitcoin-cli gettxout "TXID" VOUT false
```

Core's published [wallet functional test](https://github.com/bitcoin/bitcoin/blob/v32.1/test/functional/wallet%5Fbasic.py?ref=cnainbridge.org) asserts the following cases. The table describes those authored expectations; both calls must concern the same outpoint and an unchanged node state for this comparison.

| Output state in the test                                  | Include mempool: true | Include mempool: false | What it tells you                                                        |
| --------------------------------------------------------- | --------------------- | ---------------------- | ------------------------------------------------------------------------ |
| Confirmed and unspent, with no local mempool spend        | Output details        | Output details         | The output exists in both views.                                         |
| Confirmed output now spent in the local mempool           | null                  | Output details         | The chain view still has it; the local mempool already contains a spend. |
| New unspent output created by a local mempool transaction | Output details        | null                   | The output is currently unconfirmed in this node's view.                 |

I'd keep the mempool-aware result as the starting point for a current check. Choosing `false` doesn't make an existing pending spend disappear from the network. Nor does another node have to share this node's mempool. New blocks, replacements, evictions or a reorganization can change the answer between calls; record the time and returned block reference with your private notes.

If both calls return `null`, the output wasn't found in either selected view. Recheck the exact outpoint, network and node readiness. The output may have been spent, may not yet be known to this node, or may be the wrong output entirely. The result alone doesn't identify a spending transaction, prove a confirmed theft or diagnose a missing private key.

A historical transaction or block can still contain an output that has since been spent. An inclusion proof answers whether a transaction was included in a block; it doesn't establish that one of its outputs remains unspent now. Core's [proof test retrieves an inclusion proof for a fully spent transaction](https://github.com/bitcoin/bitcoin/blob/v32.1/test/functional/rpc%5Ftxoutproof.py?ref=cnainbridge.org) when its block is supplied. 

## Check what the intended wallet recognizes

For wallet-specific checks, select the wallet explicitly. In these read-only examples, replace `my-wallet` with its actual local name. Core's [wallet endpoint rules](https://github.com/bitcoin/bitcoin/blob/v32.1/doc/JSON-RPC-interface.md?ref=cnainbridge.org#endpoints) explain why explicit selection matters when several wallets are loaded.

```
bitcoin-cli -rpcwallet="my-wallet" getwalletinfo
bitcoin-cli -rpcwallet="my-wallet" listunspent
bitcoin-cli -rpcwallet="my-wallet" listunspent 0
```

Match entries using `txid` and `vout`. The [listunspent filters](https://bitcoincore.org/en/doc/32.0.0/rpc/wallet/listunspent/?ref=cnainbridge.org) default to at least one confirmation, so the final example lowers that minimum to include eligible unconfirmed entries. It doesn't bypass every other wallet filter. Address and amount restrictions, wallet knowledge, scanning and coin availability can all affect a listing; immature coinbase outputs are excluded by default.

Coin-selection locks are another local restriction. [listlockunspent shows locked outpoints](https://bitcoincore.org/en/doc/32.0.0/rpc/wallet/listlockunspent/?ref=cnainbridge.org) in the selected wallet. A [locked output is excluded from automatic coin selection](https://bitcoincore.org/en/doc/32.0.0/rpc/wallet/lockunspent/?ref=cnainbridge.org); the lock doesn't spend it on-chain or create missing keys. Check why a lock exists before changing it.

If the node finds the output but the selected wallet doesn't list it, investigate wallet identity, script coverage, scan state and the actual filters. Don't begin by reimporting guessed keys or deleting node data. A node can know an output exists while the loaded wallet has never been configured to track it.

For an output with a known address, `getaddressinfo "KNOWN_ADDRESS"` on the selected wallet reports its relationship to that address. Compare the returned `scriptPubKey` with the output's script. Keep public descriptors, addresses and paths private too: they can reveal financial activity even when they contain no signing secret.

| Field                       | Meaning in this Core version                                        | Limit on the conclusion                                             |
| --------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
| listunspent: spendable      | Deprecated; always true.                                            | It isn't a test that this wallet holds the necessary private keys.  |
| solvable                    | Core knows how to spend the output, ignoring possible missing keys. | Script knowledge doesn't establish a complete signature set.        |
| listunspent: safe           | The wallet considers the output safe under its spending policy.     | This isn't a universal safety, ownership or confirmation guarantee. |
| getaddressinfo: ismine      | The address belongs to the active wallet's recognized set.          | Read it alongside the wallet mode and spending policy.              |
| getaddressinfo: iswatchonly | Deprecated; always false.                                           | A false value doesn't establish that private keys are present.      |

Those deprecated values are explicit in the current [address information reference](https://bitcoincore.org/en/doc/32.0.0/rpc/wallet/getaddressinfo/?ref=cnainbridge.org) and unspent-output reference. Avoid older recipes that turn `spendable: true` into an ownership verdict. In [Core 32.1's listing implementation](https://github.com/bitcoin/bitcoin/blob/v32.1/src/wallet/rpc/coins.cpp?ref=cnainbridge.org), the returned `spendable` value is set to `true`.

## Establish the keys and conditions separately

Read `private_keys_enabled` and `external_signer` in [getwalletinfo](https://bitcoincore.org/en/doc/32.0.0/rpc/wallet/getwalletinfo/?ref=cnainbridge.org). Disabled private keys identify an enforced watch-only wallet. An external-signer arrangement keeps signing elsewhere. A private-key-enabled wallet may still lack a particular required key, and an encrypted wallet may need unlocking for an authorized signing operation. None of those wallet-wide fields certifies every output's complete spending path. Keep the signing keys where your custody arrangement intends them to stay; copying them onto the node isn't a prerequisite for looking up a coin.

Multisig needs the required distinct signing keys and the full script configuration. Core's [published 2-of-3 descriptor-wallet test](https://github.com/bitcoin/bitcoin/blob/v32.1/test/functional/wallet%5Fmultisig%5Fdescriptor%5Fpsbt.py?ref=cnainbridge.org) illustrates the difference: watch-only participants recognize the same funded wallet, while sequential signing remains incomplete after the first signer and completes after the second. Recognizing the balance and producing enough signatures are separate checkpoints.

Other script conditions can also matter, including timelocks. Coinbase outputs have a maturity condition even though they can already appear in the UTXO set. Core's [blockchain RPC test](https://github.com/bitcoin/bitcoin/blob/v32.1/test/functional/rpc%5Fblockchain.py?ref=cnainbridge.org) inspects a coinbase output with one confirmation; the separate [input validation rules](https://github.com/bitcoin/bitcoin/blob/v32.1/src/consensus/tx%5Fverify.cpp?ref=cnainbridge.org) enforce maturity before spending. An unspent result doesn't waive that condition.

If you're already preparing an intended spend, [analyzepsbt identifies missing input information](https://bitcoincore.org/en/doc/32.0.0/rpc/rawtransactions/analyzepsbt/?ref=cnainbridge.org), including signatures or scripts where applicable. Its information comes from the supplied PSBT; it isn't an independent current-chain check. Resolve the exact missing requirement with the intended wallet or signer rather than uploading wallet secrets to a decoder.

I wouldn't sign a spending transaction merely because a stranger calls it an ownership check. [walletprocesspsbt signs by default](https://bitcoincore.org/en/doc/32.0.0/rpc/wallet/walletprocesspsbt/?ref=cnainbridge.org); the resulting authorization can be usable even before anyone broadcasts it. For an actual intended spend, verify the recipient, amount, change policy and fee through the supported signer workflow before authorizing anything. A message signature also has its own protocol and claim limits; it doesn't replace this output-state and spending-condition review.

## Choose the next action from the evidence

Keep a private record of the network, Core version, outpoint, query time, mempool choice, returned `bestblock` and selected wallet. Remove addresses, descriptors, paths and identifying transaction details from public support material. A screenshot or a label saying “spendable” isn't a substitute for the underlying check.

If the output exists but the wallet doesn't recognize it, investigate that wallet's configuration and history. If it recognizes the output but signing is incomplete, inspect the required policy and signers. If a local mempool spend explains its absence, examine that intended or unexpected transaction before creating another spend. Use the [node and wallet library](https://cnainbridge.org/tag/nodes/) for the corresponding setup or recovery task, with the original backups preserved.