Have you read the bitcoin core documentation?
If not yet read them here
-
https://developer.bitcoin.org/reference/rpc/index.htmlAbout "listreceivedbyaddress" read this
https://developer.bitcoin.org/reference/rpc/listreceivedbyaddress.htmlAccording to documentation, it is "List balances by receiving address."
And for "listaddressgroupings" read them here
https://developer.bitcoin.org/reference/rpc/listaddressgroupings.htmlAccording to documentation about this command:
"Lists groups of addresses which have had their common ownership made public by common use as inputs or as the resulting change in past transactions"
Based on what I understand about listaddressgroupings the returning result must be the addresses with inputs or past transactions that exist on the mainnet blockchain meaning if you use this command and the target address doesn't have inputs or past transaction it won't show anything.
For listreceivedbyaddress I think it only shows the total amount received of the target address and shows the confirmations of the recent transaction.
I got this on "
listreceivedbyaddress"
I don't know if it's a bug, but i tried same thing on regtest using Bitcoin Core 0.21.1. But command
listreceivedbyaddress never shows correct amount even if i use different parameter
listreceivedbyaddress
listreceivedbyaddress 0
listreceivedbyaddress 0 true
listreceivedbyaddress 0 true "the_address"
Can you try this command below?
bitcoin-cli listreceivedbyaddress 0 true true '"replacethiswiththetargetaddress"'
Don't remove the quotes.