For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Current Votes

Gets the balance of votes for an account as of the current block.

AGL

function getCurrentVotes(address account) returns (uint96)
  • account: Address of the account in which to retrieve the number of votes.

  • RETURN: The number of votes (integer).

Solidity

AGL agl = AGL(0x123...); // contract address
uint votes = agl.getCurrentVotes(0xabc...);

Web3 1.2.6

const account = '0x123...'; // contract address
const votes = await agl.methods.getCurrentVotes(account).call();

Last updated