Annex Docs
Search…
Get Current Votes
Gets the balance of votes for an account as of the current block.
ANN
1
function getCurrentVotes(address account) returns (uint96)
Copied!
  • account: Address of the account in which to retrieve the number of votes.
  • RETURN: The number of votes (integer).
Solidity
1
ANN ann = ANN(0x123...); // contract address
2
uint votes = ann.getCurrentVotes(0xabc...);
Copied!
Web3 1.2.6
1
const account = '0x123...'; // contract address
2
const votes = await ann.methods.getCurrentVotes(account).call();
Copied!
Last modified 4mo ago
Copy link