Skip to main content

Get vote

Get the content of an existing Vote. If is an encrypted election it return the encryptionKeys indexes and the package will be codified.

The Vote is identified by its voteId, also called nullifier. The nullifier is deterministic and its hash could be computed as following (using Keccak256):

  • For signature based elections, is the hash of the voterAddress + processId
  • For anonymous elections, the privateKey + processId

As well, on the response, the voterId won't be returned for anonymous elections, and the encryptionKeyIndexes only for finished encrypted elections.

Height and txIndex refer to the block height and the index of the transaction where vote is registered.

The overwriteCount refers to the number of vote overwrites already executed by the user. At election creation time, you can specify the maxVoteOverwrites parameter, which defines how many times a voter can submit a vote. Only last vote will be taken into election final results.

Path Parameters
  • voteID string required

    Nullifier of the vote

Responses

OK


Schema
  • blockHeight integer
  • date string

    Date when the vote was emitted

  • electionID string
  • encryptionKeys integer[]

    Sent only for encrypted elections (no results until the end)

  • number integer
  • overwriteCount integer
  • package integer[]

    For encrypted elections this will be codified

  • transactionIndex integer
  • txHash string
  • voteID string
  • voterID string
  • weight string
Loading...

Resources

Guides
Soon

Tutorials
Soon

Copyright © 2024 Vocdoni, Inc. All rights reserved.