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