---
updatedAt: 2026-08-10T22:07:58.000Z
agentTools:
  projectIndex: https://docs.blockberry.one/llms.txt
---

# getVotesByMip*

Get a list of votes of the queried MIP (Mina Improvement Proposals).

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Mina Devnet API",
    "description": "Mina Devnet (testnet) public REST API by Minascan / Blockberry.",
    "termsOfService": "https://blockberry.one/terms",
    "contact": {
      "name": "Staketab tech support",
      "url": "https://staketab.com/",
      "email": "support@staketab.com"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.blockberry.one/mina-devnet",
      "description": "Production"
    }
  ],
  "security": [
    {
      "x-api-key": []
    }
  ],
  "paths": {
    "/v1/mips/{id}/votes": {
      "get": {
        "tags": [
          "Mips"
        ],
        "summary": "getVotesByMip*",
        "description": "Get a list of votes of the queried MIP (Mina Improvement Proposals).",
        "operationId": "getVotesByMip",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Queried API page.",
            "required": true,
            "schema": {
              "minimum": 0,
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "size",
            "in": "query",
            "description": "Number of queried entries.",
            "required": true,
            "schema": {
              "maximum": 50,
              "minimum": 1,
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "orderBy",
            "in": "query",
            "description": "Sorting method: from the lowest element to the highest (ASC) or from the highest element to the lowest (DESC).",
            "required": true,
            "schema": {
              "type": "string",
              "default": "DESC",
              "enum": [
                "ASC",
                "DESC"
              ]
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "Mip ID - the order number of a MIP.",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Mip ID - the order number of a MIP.",
              "format": "int64",
              "default": 1
            }
          },
          {
            "name": "searchStr",
            "in": "query",
            "description": "Enter part or full account name or address to get a list of votes the queried account cast.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "B62qoeMGjqqoXfH1JcUirKBjzWYAi8RqrRYxMdQd9a3DtpLfzG9JTMW"
          },
          {
            "name": "sortBy",
            "in": "query",
            "description": "Select sorting parameter.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "TIMESTAMP",
              "enum": [
                "TIMESTAMP"
              ]
            }
          },
          {
            "name": "vote",
            "in": "query",
            "description": "Vote option.",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Vote option.",
              "default": "ALL",
              "enum": [
                "YES",
                "NO",
                "INVALID",
                "ALL",
                "ALL",
                "YES",
                "NO",
                "INVALID"
              ]
            }
          },
          {
            "name": "accountType",
            "in": "query",
            "description": "The type of account that cast a vote in a MIP.",
            "required": false,
            "schema": {
              "type": "string",
              "description": "The type of account that cast a vote in a MIP.",
              "default": "ALL",
              "enum": [
                "ACCOUNT",
                "VALIDATOR",
                "ALL",
                "ALL",
                "ACCOUNT",
                "VALIDATOR"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestResponsePageVoteMipListDto"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PageableObject": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "offset": {
            "type": "integer",
            "format": "int64"
          },
          "sort": {
            "$ref": "#/components/schemas/SortObject"
          },
          "paged": {
            "type": "boolean"
          },
          "unpaged": {
            "type": "boolean"
          }
        }
      },
      "SortObject": {
        "type": "object",
        "properties": {
          "sorted": {
            "type": "boolean"
          },
          "empty": {
            "type": "boolean"
          },
          "unsorted": {
            "type": "boolean"
          }
        }
      },
      "RestResponsePageVoteMipListDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "writeOnly": true,
            "items": {
              "$ref": "#/components/schemas/VoteMipListDto"
            }
          },
          "currentPage": {
            "type": "integer",
            "format": "int32",
            "writeOnly": true
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "totalItems": {
            "type": "integer",
            "format": "int64",
            "writeOnly": true
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          },
          "content": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VoteMipListDto"
            }
          },
          "pageable": {
            "$ref": "#/components/schemas/PageableObject"
          },
          "last": {
            "type": "boolean"
          },
          "totalElements": {
            "type": "integer",
            "format": "int64"
          },
          "number": {
            "type": "integer",
            "format": "int32"
          },
          "sort": {
            "$ref": "#/components/schemas/SortObject"
          },
          "first": {
            "type": "boolean"
          },
          "numberOfElements": {
            "type": "integer",
            "format": "int32"
          },
          "empty": {
            "type": "boolean"
          }
        }
      },
      "VoteMipListDto": {
        "type": "object",
        "properties": {
          "pk": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "img": {
            "type": "string"
          },
          "vote": {
            "type": "string"
          },
          "voteMemo": {
            "type": "string"
          },
          "voteStatus": {
            "type": "string"
          },
          "voteBlockConfirmation": {
            "type": "integer",
            "format": "int64"
          },
          "amountStaked": {
            "type": "number",
            "format": "double"
          },
          "amountStakedPercent": {
            "type": "number",
            "format": "double"
          },
          "txHash": {
            "type": "string"
          },
          "stateHash": {
            "type": "string"
          },
          "blockHeight": {
            "type": "integer",
            "format": "int64"
          },
          "timestamp": {
            "type": "integer",
            "format": "int64"
          }
        }
      }
    },
    "securitySchemes": {
      "x-api-key": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      }
    }
  }
}
```