Cardano · Schema

Proposal Votes

BlockchainCryptocurrencyProof-of-StakeSmart ContractsWeb3
View JSON Schema on GitHub

JSON Schema

proposal-votes.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cardano.blockfrost.io/schema/proposal_votes",
  "title": "Proposal Votes",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "tx_hash": {
        "type": "string",
        "description": "Hash of the voting transaction."
      },
      "cert_index": {
        "type": "integer",
        "description": "Index of the certificate within the voting transaction."
      },
      "voter_role": {
        "type": "string",
        "enum": [
          "constitutional_committee",
          "drep",
          "spo"
        ],
        "description": "The role of the voter. Can be one of constitutional_committee, drep, spo."
      },
      "voter": {
        "type": "string",
        "description": "The actual voter."
      },
      "vote": {
        "type": "string",
        "enum": [
          "yes",
          "no",
          "abstain"
        ],
        "description": "The Vote. Can be one of yes, no, abstain."
      }
    },
    "required": [
      "tx_hash",
      "cert_index",
      "voter_role",
      "voter",
      "vote"
    ]
  },
  "example": [
    {
      "tx_hash": "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5",
      "cert_index": 2,
      "voter_role": "drep",
      "voter": "drep1mvdu8slennngja7w4un6knwezufra70887zuxpprd64jxfveahn",
      "vote": "yes"
    },
    {
      "tx_hash": "b302de601defdf11a5261ed31a263804dac4a582a888c998ce24dec5",
      "cert_index": 3,
      "voter_role": "constitutional_committee",
      "voter": "53a42debdc7ffd90085ab7fd9800b63e6d1c9ac481ba6eb7b6a844e4",
      "vote": "abstain"
    }
  ]
}