bitcoind.app
CommandsGuidesContact ↗
Home/Wallet/getreceivedbylabel
Wallet

getreceivedbylabel

Returns the total amount received by addresses with the given label in transactions with at least minconf confirmations.

Parameters

labelstringREQUIRED
The label
minconfnumberoptional
Minimum confirmations. Default: 1
include_immature_coinbasebooleanoptional
Include immature coinbase. Default: false

Returns

numberTotal amount received in BTC

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"getreceivedbylabel","params":["payments"]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

5.67890000
← Previous
getreceivedbyaddress
Next →
importdescriptors

More Wallet Commands

abandontransactioncreatewalletdumpprivkeygetbalancegetnewaddressgettransaction

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗