Fortress
Search…
Get Current Votes
Gets the balance of votes for an account as of the current block.

FTS

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
FTS fts = FTS(0x123...); // contract address
2
fts.getCurrentVotes(0xabc...);
Copied!

Web3 1.2.6

1
const account = '0x123...'; // contract address
2
const votes = await fts.methods.getCurrentVotes(account).call();
Copied!
Last modified 9mo ago
Copy link