pub.chive.governance.listVotes

chive.pub

Documentation

List votes for a specific governance proposal

main query

List votes for a specific governance proposal

Parameters

cursor string Optional

Pagination cursor for next page

limit integer Optional

Maximum number of results to return

proposalId string Required

Proposal identifier

Output

Encodingapplication/json
cursor string Optional

Cursor for next page

total integer Required

Total number of votes

votes array Required

List of votes

Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://api.bsky.social)
Parameters
Pagination cursor for next page
Maximum number of results to return
Proposal identifier
View raw schema
{
  "type": "query",
  "errors": [],
  "output": {
    "schema": {
      "type": "object",
      "required": [
        "votes",
        "total"
      ],
      "properties": {
        "total": {
          "type": "integer",
          "description": "Total number of votes"
        },
        "votes": {
          "type": "array",
          "items": {
            "ref": "#voteView",
            "type": "ref"
          },
          "description": "List of votes"
        },
        "cursor": {
          "type": "string",
          "description": "Cursor for next page"
        }
      }
    },
    "encoding": "application/json"
  },
  "parameters": {
    "type": "params",
    "required": [
      "proposalId"
    ],
    "properties": {
      "limit": {
        "type": "integer",
        "default": 100,
        "maximum": 100,
        "minimum": 1,
        "description": "Maximum number of results to return"
      },
      "cursor": {
        "type": "string",
        "description": "Pagination cursor for next page"
      },
      "proposalId": {
        "type": "string",
        "description": "Proposal identifier"
      }
    }
  },
  "description": "List votes for a specific governance proposal"
}
voteView object

View of a vote on a proposal

Properties

cid string Required

Content identifier

createdAt string datetime Required

Vote timestamp

id string Required

Vote identifier

proposalUri string at-uri Required

Proposal AT-URI

rationale string Optional

Vote rationale

uri string at-uri Required

Vote AT-URI

vote string Required

Vote value

Known values: approve, reject, abstain, request-changes
voterDid string did Required

Voter DID

voterName string Optional

Voter display name

voterRole string Required

Voter governance role

Known values: community-member, reviewer, domain-expert, administrator
weight integer Required

Weighted vote value (scaled by 1000 for 0.0-1.0 range)

minimum: 0maximum: 1000
View raw schema
{
  "type": "object",
  "required": [
    "id",
    "uri",
    "cid",
    "proposalUri",
    "voterDid",
    "voterRole",
    "vote",
    "weight",
    "createdAt"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Vote identifier"
    },
    "cid": {
      "type": "string",
      "description": "Content identifier"
    },
    "uri": {
      "type": "string",
      "format": "at-uri",
      "description": "Vote AT-URI"
    },
    "vote": {
      "type": "string",
      "description": "Vote value",
      "knownValues": [
        "approve",
        "reject",
        "abstain",
        "request-changes"
      ]
    },
    "weight": {
      "type": "integer",
      "maximum": 1000,
      "minimum": 0,
      "description": "Weighted vote value (scaled by 1000 for 0.0-1.0 range)"
    },
    "voterDid": {
      "type": "string",
      "format": "did",
      "description": "Voter DID"
    },
    "createdAt": {
      "type": "string",
      "format": "datetime",
      "description": "Vote timestamp"
    },
    "rationale": {
      "type": "string",
      "description": "Vote rationale"
    },
    "voterName": {
      "type": "string",
      "description": "Voter display name"
    },
    "voterRole": {
      "type": "string",
      "description": "Voter governance role",
      "knownValues": [
        "community-member",
        "reviewer",
        "domain-expert",
        "administrator"
      ]
    },
    "proposalUri": {
      "type": "string",
      "format": "at-uri",
      "description": "Proposal AT-URI"
    }
  },
  "description": "View of a vote on a proposal"
}

Lexicon Garden

@