|
| 1 | +post: |
| 2 | + operationId: "postStateValidatorIdentities" |
| 3 | + summary: "Get validator identities from state" |
| 4 | + description: | |
| 5 | + Returns filterable list of validators identities. |
| 6 | +
|
| 7 | + Identities will be returned for all indices or public keys that match known validators. If an index or public key does not |
| 8 | + match any known validator, no identity will be returned but this will not cause an error. There are no guarantees for the |
| 9 | + returned data in terms of ordering. |
| 10 | +
|
| 11 | + Depending on `Accept` header data can be returned either as JSON or as bytes serialized by SSZ. |
| 12 | + tags: |
| 13 | + - Beacon |
| 14 | + parameters: |
| 15 | + - name: state_id |
| 16 | + in: path |
| 17 | + $ref: '../../../beacon-node-oapi.yaml#/components/parameters/StateId' |
| 18 | + requestBody: |
| 19 | + description: "An array of values, with each value either a hex encoded public key (any bytes48 with 0x prefix) or a validator index." |
| 20 | + required: false |
| 21 | + content: |
| 22 | + application/json: |
| 23 | + schema: |
| 24 | + type: array |
| 25 | + uniqueItems: true |
| 26 | + items: |
| 27 | + description: "Either hex encoded public key (any bytes48 with 0x prefix) or validator index" |
| 28 | + type: string |
| 29 | + responses: |
| 30 | + "200": |
| 31 | + description: Success |
| 32 | + content: |
| 33 | + application/json: |
| 34 | + schema: |
| 35 | + title: PostStateValidatorIdentitiesResponse |
| 36 | + type: object |
| 37 | + required: [execution_optimistic, finalized, data] |
| 38 | + properties: |
| 39 | + execution_optimistic: |
| 40 | + $ref: "../../../beacon-node-oapi.yaml#/components/schemas/ExecutionOptimistic" |
| 41 | + finalized: |
| 42 | + $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Finalized" |
| 43 | + data: |
| 44 | + type: array |
| 45 | + items: |
| 46 | + $ref: '../../../beacon-node-oapi.yaml#/components/schemas/ValidatorIdentityResponse' |
| 47 | + application/octet-stream: |
| 48 | + schema: |
| 49 | + description: "SSZ serialized results. Use Accept header to choose this response type" |
| 50 | + "400": |
| 51 | + description: "Invalid state ID or malformed request" |
| 52 | + content: |
| 53 | + application/json: |
| 54 | + schema: |
| 55 | + $ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage" |
| 56 | + example: |
| 57 | + code: 400 |
| 58 | + message: "Invalid state ID: current" |
| 59 | + "404": |
| 60 | + description: "State not found" |
| 61 | + content: |
| 62 | + application/json: |
| 63 | + schema: |
| 64 | + $ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage" |
| 65 | + example: |
| 66 | + code: 404 |
| 67 | + message: "State not found" |
| 68 | + "406": |
| 69 | + $ref: "../../../beacon-node-oapi.yaml#/components/responses/NotAcceptable" |
| 70 | + "500": |
| 71 | + $ref: '../../../beacon-node-oapi.yaml#/components/responses/InternalError' |
0 commit comments