Strike Docs
Search…
Voting Period
The duration of voting on a proposal, in Ethereum blocks.
Governor Alpha
1
function votingPeriod() returns (uint)
Copied!
    RETURN: The duration of voting on a proposal, in Ethereum blocks.
Solidity
1
GovernorAlpha gov = GovernorAlpha(0x123...); // contract address
2
uint blocks = gov.votingPeriod();
Copied!
Web3 1.2.6
1
const blocks = await gov.methods.votingPeriod().call();
Copied!
Last modified 8mo ago
Copy link