Getting no data with RPC call for Masternode addresses
What happened:
When using the RPC Calls: getaccount or accounthistorycount for an address with a masternode like { "jsonrpc": "1.0", "id": "1", "method": "getaccount", "params": [ "8WrcPiaoGhQgitWiBG6e3fW7dVTuZMvjot" ] } I do not get any results. That's the same for alle masternode addresses i tried.
When you look up the address in the blockexplorer you get data: https://explorer.defichain.io/#/DFI/mainnet/address/8WrcPiaoGhQgitWiBG6e3fW7dVTuZMvjot
What you expected to happen:
Do get Data from the RPC calls when using a masternode address
How to reproduce it (as minimally and precisely as possible):
Use the RPC Call
What are your environment parameters:
Linux Debian OS 1.8.2 and 1.8.3
Anything else we need to know?:
@Lysanthe: Thanks for opening an issue, it is currently awaiting triage.
The triage/accepted label can be added by foundation members by writing /triage accepted in a comment.
Details
I am a bot created to help the DeFiCh developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the DeFiCh/oss-governance-bot repository.
Hey, this is working as expected as those RPCs return the account balances that are in account form. For UTXO balances, you can use the getbalance if the addresses are your wallet's, or scantxoutset otherwise.
$ defi-cli scantxoutset start '["addr(8WrcPiaoGhQgitWiBG6e3fW7dVTuZMvjot)"]'
{
"success": true,
"searched_items": 2399061,
"unspents": [
....
],
"total_amount": 20197.34814569 # UTXO balance
}