How to get balance for a label

1

I have lots of addresses organized under a label.
Is there a command to show the total remaining amount available under a label ? (Or address)
I am building a payment gateway and I need get the total remaining amount of an address thats why I cannot use listreceivedbylabel.
I am also not able to rely on some block explorers API.

Emil

Posted 2019-06-09T00:42:31.840

Reputation: 63

Answers

1

Use getreceivedbylabel. It takes label and minconf as arguments. label is the label, and minconf is the minimum number of confirmations for a transaction to be considered for inclusion in this value. The default is 1 confirmation.

Andrew Chow

Posted 2019-06-09T00:42:31.840

Reputation: 40 910

This only shows the total received amount, not the amount of which is spendabelEmil 2019-06-09T10:49:05.097

1Labels cannot be "spent from", so getreceivedbylabel gives you the "balance" of the label. You are trying to use labels like the old accounts system, don't do that.Andrew Chow 2019-06-09T10:57:24.143