Strike Docs
Search…
Get Current Votes
Gets the balance of votes for an account as of the current block.
STRK
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
Strk strk = Strk(0x123...); // contract address
2
uint votes = strk.getCurrentVotes(0xabc...);
Copied!
Web3 1.2.6
1
const account = '0x123...'; // contract address
2
const votes = await strk.methods.getCurrentVotes(account).call();
Copied!
Last modified 8mo ago
Copy link