How Snapshot voting works under the hood
Snapshot decouples vote signaling from Layer 1 gas fees by pairing cryptographic EIP-712 signatures with deterministic historical state reads at a fixed snapshot block.
Step-by-step lifecycle of a gasless vote
Unlike an on-chain Governor vote that submits an Ethereum transaction and pays network gas, a Snapshot vote is a signed structured message validated by Snapshot’s Sequencer and pinned to IPFS for public auditability:
- Proposal creation: An author whose address meets the space’s proposal validation rule (for example, holding a minimum token threshold or holding an author allowlist role) signs a proposal payload defining the title, body, voting system, start/end timestamps, and a specific historical
snapshotblock number. - Deterministic power lookup: When a voter opens the proposal, Snapshot evaluates the space’s configured JavaScript strategies against archival RPC nodes at that exact historical block height.
- Off-chain signature: The voter signs an EIP-712 typed message specifying the space ID, proposal hash, choice payload, timestamp, and optional voting rationale. No on-chain transaction is broadcast and zero gas is spent.
- Sequencer validation & IPFS receipt: Snapshot Sequencer verifies the cryptographic signature, confirms non-zero voting power at the snapshot block, persists the signed JSON receipt to IPFS, and returns a content-addressed IPFS CID as proof of the cast ballot.
- Tallying & optional execution: After the closing timestamp, scores are summed deterministically from all valid receipts. Because the vote itself is off-chain, enacting an outcome requires either human multisig signers or a trust-minimized oracle bridge such as Reality.eth + Zodiac or UMA’s oSnap.
EIP-712 typed data vs. EIP-1271 smart-wallet signatures
Snapshot uses EIP-712 (Ethereum Typed Structured Data Hashing and Signing) so wallets display human-readable fields instead of an opaque hex string. Domain separation protects signatures from replay across unrelated protocols.
{
"domain": { "name": "snapshot", "version": "0.1.4" },
"types": {
"Vote": [
{ "name": "from", "type": "address" },
{ "name": "space", "type": "string" },
{ "name": "timestamp", "type": "uint64" },
{ "name": "proposal", "type": "bytes32" },
{ "name": "choice", "type": "uint32" },
{ "name": "reason", "type": "string" },
{ "name": "app", "type": "string" },
{ "name": "metadata", "type": "string" }
]
}
}
For EOAs (hardware wallets or browser wallets controlled by a single private key), signature verification uses standard elliptic curve recovery (ecrecover). For smart-contract accounts such as a Safe multisig, Snapshot validates votes via EIP-1271 (isValidSignature(bytes32, bytes)) on-chain, meaning the multisig owners either sign off-chain through Safe’s message signing flow or confirm a SignMessageLib contract message so Snapshot can verify threshold approval.
Why the snapshot block number matters
Every Snapshot proposal pins a single block number—normally the chain tip at the moment the proposal is created. This design solves two fundamental governance hazards:
- No double-voting via transfers: Moving governance tokens from Wallet A to Wallet B after the snapshot block does not let Wallet B vote again, because balances are evaluated strictly at the historical block.
- Flash-loan resistance: Atomic flash loans borrow and repay within a single transaction inside one block. Because the proposal’s snapshot block is recorded in the past (before or at proposal creation), a borrower cannot flash-borrow tokens during an active vote to capture voting power.
Note a subtle operational implication: if you acquire or receive delegated tokens after a proposal’s snapshot block, your new balance will show zero voting power on that specific vote and will only count on proposals created afterward.
How voting strategies calculate voting power
A Snapshot space can combine up to eight strategies in a single configuration, summing their outputs per address. Because strategies run off-chain against archive RPC state, DAOs can count assets that would be prohibitively expensive to aggregate on-chain:
| Strategy Pattern | What it reads at the snapshot block | Operational caveat |
|---|---|---|
erc20-balance-of | Plain ERC-20 token balance on one chain. | Excludes tokens staked in liquidity pools, vaults, or lending markets unless paired with receipt-token strategies. |
delegation / erc20-votes | Snapshot Delegate Registry or on-chain IVotes checkpoints. | Always verify whether delegation is space-specific or global so delegates know where power applies. |
multichain | Aggregates balances across Ethereum mainnet and L2 networks (Arbitrum, Optimism, Base, Gnosis). | Requires aligned block timestamps across chains and reliable archive RPC endpoints. |
erc721 / erc1155 | Membership NFTs, council badges, or role tokens. | Useful for one-seat-one-vote committees or bicameral houses alongside token voting. |
contract-call | Arbitrary read-only view function (for example, veToken lock balances or staking contract shares). | Must remain deterministic and revert-free for zero-balance addresses at historical blocks. |
Spaces can also enable Shutter shielded voting, which encrypts individual ballot choices using threshold encryption until the voting period ends—mitigating last-minute bandwagoning and whale coercion while still revealing full tallies at close.
Pre-vote verification checklist for delegates
- [ ]Inspect the IPFS receipt hash and space ENS record: Confirm you are on the official
snapshot.boxdomain and the authentic space ID. - [ ]Check the EIP-712 prompt on your hardware wallet screen: Confirm the message is a Snapshot off-chain signature—never an ERC-20
Permit,setApprovalForAll, or token transfer. - [ ]Confirm your strategy-resolved voting power before signing: If your delegated power reads lower than expected, check whether tokens were delegated before the snapshot block or held on a chain omitted from the space’s strategy array.
- [ ]Verify the execution mechanism: Determine whether the proposal is a non-binding temperature check, a multisig mandate, or an oracle-enforced payload (such as oSnap) that automatically executes transactions if unchallenged.