Strike Docs
Search…
Strike Docs
Strike Documentation
Getting Started
STokens
Comptroller
Governance
Delegate
Delegate By Signature
Get Current Votes
Get Prior Votes
Key Events
Governor Alpha
Quorum Votes
Proposal Threshold
Proposal Max Operations
Voting Delay
Voting Period
Propose
Queue
Execute
Cancel
Get Actions
Get Receipt
State
Cast Vote
Cast Vote By Signature
Timelock
Pause Guardian
API
Strike.js
Security
Powered By
GitBook
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!
Previous
Voting Delay
Next
Propose
Last modified
1yr ago
Copy link