getVoters(contract, proposalID, voter)
Feature
Get information about the all voter.
Parameters
string
contract address,
string
proposalID,
data
of SucessResponse
object
voter Information, the voter can exercise voting power by being delegated from voting_power_holders.
example
const contractAddress = "0x3FD3f21da255cbb8C2E76873EE6A3daC0cbc1b0Cfca";
const proposalID = "test_proposal";
// Note: an asynchronous request.
const voterInfo = async () => {
const info = await mitum.dao.getVoters(contractAddress, proposalID);
console.log(info.data);
};
voterInfo();
//output
[
{
_hint: "mitum-dao-voter-info-v0.0.1",
voter: "0x8576E249266aE40441BAF397964bEfa2E4d2E71Bfca",
voting_power_holders: [
"0x8576E249266aE40441BAF397964bEfa2E4d2E71Bfca"
]
},
{
_hint: "mitum-dao-voter-info-v0.0.1",
voter: "0xE7221DE924c76C2F18B17a3345463dF3583580f0fca",
voting_power_holders: [
"0xE7221DE924c76C2F18B17a3345463dF3583580f0fca",
"0x893EEE05C6348516A583F02ccd1D065737261B53fca"
]
}
]
PreviousgetApproved(contract, proposalId, account)NextpreSnap(contract, sender, proposalID, currency)
Last updated