Annex Docs
Search…
Annex Docs
Annex Docs
Annex Finance Documentation
Getting Started
ATokens
Comptroller
Governance
Delegate
Delegate By Signature
Get Current Votes
Get Prior Votes
Key Events
Governor Alpha
Quorum Votes
Proposal Threshold
Proposal Max Operations
Voting Delay
Voting Period
Propose
Queue
Execute
Cancel
Get Actions
Get Receipt
State
Cast Vote
Cast Vote By Signature
Timelock
Pause Guardian
API
Annex.js
Auction
Security
Pools
Powered By
GitBook
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!
Previous
Delegate By Signature
Next
Get Prior Votes
Last modified
10mo ago
Copy link