Get a user's vote on a specific proposal, if they have voted
Parameters
Output
Encoding
application/jsonvote
union
Required
Vote if found, or null
Errors
NotFound
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"type": "query",
"errors": [
{
"name": "NotFound"
}
],
"output": {
"schema": {
"type": "object",
"required": [
"vote"
],
"properties": {
"vote": {
"refs": [
"#voteView"
],
"type": "union",
"description": "Vote if found, or null"
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"proposalId",
"userDid"
],
"properties": {
"userDid": {
"type": "string",
"format": "did",
"description": "User DID"
},
"proposalId": {
"type": "string",
"description": "Proposal identifier"
}
}
},
"description": "Get a user's vote on a specific proposal, if they have voted"
}