From: Alekos Filini Date: Wed, 22 Jul 2020 10:08:04 +0000 (+0200) Subject: Document `list_transactions` X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/struct.DecoderReader.html?a=commitdiff_plain;h=b1158b62e6face7805d45c3babe12e4b31040d36;p=bitcoindevkit.org Document `list_transactions` --- diff --git a/content/repl/interface.md b/content/repl/interface.md index 9f0ff42b42..62b29d415b 100644 --- a/content/repl/interface.md +++ b/content/repl/interface.md @@ -72,6 +72,7 @@ match anymore the one you've used to initialize the cache. One solution could be | [finalize_psbt](#finalize_psbt) | Finalizes a psbt | | [get_balance](#get_balance) | Returns the current wallet balance | | [get_new_address](#get_new_address) | Generates a new external address | +| [list_transactions](#list_transactions) | Lists all the incoming and outgoing transactions of the wallet | | [list_unspent](#list_unspent) | Lists the available spendable UTXOs | | [policies](#policies) | Returns the available spending policies for the descriptor | | [public_descriptor](#public_descriptor) | Returns the public version of the wallet's descriptor(s) | @@ -194,6 +195,12 @@ This subcommand has no extra flags, and simply returns the available balance in This subcommand has no extra flags and returns a new address. It internally increments the derivation index and saves it in the database. +### list\_transactions + +This subcommand has no extra flags and returns the history of transactions made or received by the wallet, with their txid, confirmation height and the amounts (in Satoshi) "sent" (meaning, the sum of the wallet's inputs spent in the transaction) and +"received" (meaning, the sum of the outputs received by the wallet). Just like [`get_balance`](#get_balance) it **should normally be called after [`sync`](#sync)**, since it only operates +on the internal cache. + ### list\_unspent This subcommand has no extra flags and returns the list of available UTXOs and their value in Satoshi. Just like [`get_balance`](#get_balance) it **should normally be called after [`sync`](#sync)**, since it only operates