Cast a Snapshot vote from the Safe
snapshot_voteCast a gasless off-chain Snapshot vote on behalf of a Safe by signing an EIP-712 message and submitting it once the Safe's EIP-1271 signature is validated.
Instructions
Casts an off-chain, gasless Snapshot vote on behalf of the Safe. Signs an EIP-712 vote as a Safe message, waits for the Safe's EIP-1271 signature, then submits it to the Snapshot sequencer. Read the proposal with snapshot_get_proposal first so the choice index and voting system match. Voting again on the same proposal replaces the earlier vote.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"proposalId": "<proposalId>",
"choice": "<choice>"
},
"name": "snapshot_vote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| choice | Yes | 1-indexed choice. A single number for single-choice/basic proposals, an array for approval or ranked-choice, or an object of option->weight for weighted or quadratic (e.g. {"1": 70, "2": 30}). | |
| reason | No | Public rationale recorded with the vote. Strongly recommended. | |
| proposalId | Yes | Snapshot proposal id (0x… hash) |