Find which Lightning wallet outputs are reserved for funding

A deposit can be confirmed in the Core Lightning wallet while unavailable to a second funding operation. Inspect reservation metadata before retrying coin selection.

List confirmed reservations

Use the node controlling the deposit and identify the transaction output by its index as well as its transaction ID. A single funding transaction may create several outputs.

lightning-cli listfunds | jq '.outputs[] | select(.status == "confirmed" and .reserved) | {txid, output, amount_msat, reserved_to_block}'

Relate the reservation to its expiry

reserved_to_block gives the height at which a reservation expires. Compare it with the current blockheight and check the operation that reserved the coin. Releasing a reservation manually while another transaction builder is active can make both builders select the same input.

docs.corelightning.org listfunds