Skip to content

@governor:proposalState

Current state of a Governor proposal: Pending, Active, Canceled, Defeated, Succeeded, Queued, Expired or Executed.

Returns: string

@governor:proposalState(governor proposalId)
NameTypeDescription
governoraddressGovernor address
proposalIdnumberProposal id
load governor
set $governor 0x44fA8E6f47987339850636F88629646662444217
set $proposalId 42
print @governor:proposalState($governor $proposalId)
  • Returns the state name: Pending, Active, Canceled, Defeated, Succeeded, Queued, Expired or Executed.