---
eip: 1417
label: ERC-1417
title: Poll Standard
status: Stagnant
type: Standards Track
category: ERC
created: 2018-09-16
requires: 165, 1261
official: https://eips.ethereum.org/EIPS/eip-1417
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-1417.md
canonical: https://eips.huatuo.xyz/eip-1417/
lang: en
tldr: A proposed standard interface for on-chain polls that splits a poll into voter eligibility, vote weight, vote consequences and tallying, so any front end can read any poll.
tags: [governance, voting, poll, dao, interface]
---

# ERC-1417: Poll Standard

> A standard interface for Polls to be used with EIP-1261 (MVT).

**TL;DR:** A proposed standard interface for on-chain polls that splits a poll into voter eligibility, vote weight, vote consequences and tallying, so any front end can read any poll.

## What problem does it solve?

In 2018, every DAO or token sale that ran an on-chain vote deployed its own custom poll contract. Even though the data was public, there was no common way to read it, so an ordinary user could not easily see who was eligible, how votes were weighted, or what the current result was.

ERC-1417 proposes a single interface for poll contracts so wallets, explorers and dashboards can display any compliant poll. It was designed alongside [EIP-1261](/eip-1261/) (Membership Verification Tokens), which acts as the permissioning layer for who may vote. The authors note they considered [EIP-1202](/eip-1202/) but chose a separate design.

## How it works

The proposal breaks a poll into four building blocks:

1. **Voterbase**: who can vote, checked by `canVote(address)`, typically using membership in one or more EIP-1261 entities.
2. **Vote weight**: how much each vote counts, via `calculateVoteWeight(address)`. This is what allows one-person-one-vote, token-weighted, capped, delegated, karma-based or quadratic schemes.
3. **Vote consequence**: optional on-chain effects of voting, such as locking tokens or paying a fee.
4. **Tally**: per-proposal totals of vote weight *and* number of voters (NoV), so concentration of voting power is visible.

Key functions:

| Function | Purpose |
| --- | --- |
| `vote(proposalId)` / `revokeVote()` | Cast or withdraw a vote |
| `getProposals()` | Names of the options |
| `getVoteTally(id)` / `getVoterCount(id)` | Weight and headcount for one option |
| `winningProposal()` | Currently leading option |
| `getStartTime()` / `getEndTime()` | Poll window; polls may also be open-ended |
| `getProtocolAddresses()` | EIP-1261 entities used for permissioning |

Events `CastVote`, `RevokedVote` and `TriedToVote` (for rejected attempts) let outsiders audit the poll, for example to detect an admin removing legitimate members. Contracts must also support [ERC-165](/eip-165/).

## Sample code

A trimmed version of the interface, updated to current Solidity syntax:

```solidity
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;

interface IPoll {
    event CastVote(address indexed _from, uint8 indexed _to, uint256 voteWeight);
    event RevokedVote(address indexed _from, uint8 indexed _to, uint256 voteWeight);
    event TriedToVote(address indexed _from, uint8 indexed _to, uint256 voteWeight);

    function vote(uint8 _proposalId) external;
    function revokeVote() external;
    function canVote(address _to) external view returns (bool);
    function calculateVoteWeight(address _to) external view returns (uint256);
    function getProposals() external view returns (bytes32[] memory);
    function getVoteTally(uint256 _proposalId) external view returns (uint256);
    function getVoterCount(uint256 _proposalId) external view returns (uint256);
    function winningProposal() external view returns (uint8);
    function getStartTime() external view returns (uint256);
    function getEndTime() external view returns (uint256);
}
```

A separate "action" contract can read the result instead of the poll triggering anything itself:

```solidity
if (block.timestamp > poll.getEndTime() && poll.winningProposal() == 0) {
    // execute the outcome for option 0
}
```

## Things to know

- **Status: Stagnant.** It never became a widely adopted standard, and the original interface was written for Solidity 0.4.24.
- By design there is no "on finish" trigger. Acting on results is left to separate contracts that read the poll.
- Proposal lists are expected to be small (the spec suggests up to 32) because several view functions loop over all proposals.
- Its permissioning model depends on [EIP-1261](/eip-1261/), which is also stagnant. Today's DAO governance more commonly uses token-weighted governor contracts rather than this interface.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-1417
