Gets the balance of votes for an account as of the current block.
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).
BTRST btrst = BTRST(0x123...); // contract address
uint votes = btrst.getCurrentVotes(0xabc...);
const account = '0x123...'; // contract address
const votes = await btrst.methods.getCurrentVotes(account).call();
Would you like more info? Visit our Github!