listunspent

Input(s) 5

The listunspent RPC command returns an array of unspent transaction outputs (UTXOs) with confirmations between the specified minimum and maximum values. It optionally filters the outputs to include only those paid to specified addresses. This command is useful for obtaining a list of available UTXOs that can be used as inputs for creating new transactions.

How is this used?

The listunspent command is used to retrieve a list of unspent transaction outputs within a specified range of confirmations. This is essential for constructing new transactions, as it provides information about available funds that can be spent. The ability to filter by addresses allows users to obtain UTXOs specific to certain addresses, facilitating more targeted transaction creation. Additionally, the include_unsafe parameter allows users to control whether to include outputs that are not safe to spend, giving flexibility in managing wallet funds.

Request

method

listunspent

minconf

Optional

maxconf

Optional

addresses

Optional

include_unsafe

Optional

query_options

Optional

Inputs(5)

minconf The minimum confirmations to filter
maxconf The maximum confirmations to filter
addresses Bitcoin addresses to filter
include_unsafe Include outputs that are not safe to spend
query_options JSON with query options

Result