this one prints a JSON file with the output with the following format (containing an object per each proposal and its votes):
{
"1": { // proposal ID
"title": "Proposal title",
"description": "Proposal description",
"status": "PROPOSAL_STATUS_PASSED",
"votes": [
{
"valoper": "bitvaloperxxxxx",
"wallet": "bitsongxxxxx", // validator self delegate wallet
"active": true, // if the validator was active when running this script
"voted": true // if a validator voted on this proposal
}
]
}
needs an archive node, otherwise pruning won't return all votes for a validator
this one prints a JSON file with the output with the following format (containing an object per each proposal and its votes):
needs an archive node, otherwise pruning won't return all votes for a validator