listreceivedbylabel

Argument #1-minconf

Type: number (int), Optional
Default=1

Description: The minimum number of confirmations before payments are included.

Argument #2-include_empty

Type: boolean, Optional
Default=false

Description: Whether to include labels that haven't received any payments.

Argument #3-include_watchonly

Type: boolean, Optional

Description: Whether to include watch-only addresses (see 'importaddress')

Argument #4-include_immature_coinbase

Type: boolean, Optional
Default=false

Description: Include immature coinbase transactions.

Result

  [                                        (json array)
    {                                      (json object)
      "involvesWatchonly" : true|false,    (boolean, optional) Only returns true if imported addresses were involved in transaction
      "amount" : n,                        (numeric) The total amount received by addresses with this label
      "confirmations" : n,                 (numeric) The number of confirmations of the most recent transaction included
      "label" : "str"                      (string) The label of the receiving address. The default label is ""
    },
    ...
  ]