generated from mintlify/starter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvalidator-openapi-spec.json
118 lines (118 loc) · 2.91 KB
/
validator-openapi-spec.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"openapi": "3.0.0",
"info": {
"title": "Validator API",
"version": "1.0.0-oas3",
"license": {
"name": "Business Source License 1.1",
"url": "https://github.com/primev/mev-commit/blob/main/LICENSE"
}
},
"paths": {
"/v1/validator/get_validators": {
"get": {
"summary": "GetValidators",
"description": "GetValidators is called by the bidder to get the validators for a given epoch.",
"operationId": "Validator_GetValidators",
"responses": {
"200": {
"description": "A successful response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/v1GetValidatorsResponse"
}
}
}
},
"default": {
"description": "An unexpected error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/googlerpcStatus"
}
}
}
}
},
"parameters": [
{
"name": "epoch",
"description": "Epoch number for which to get the validators",
"in": "query",
"required": false,
"schema": {
"type": "string",
"format": "uint64"
}
}
]
}
}
},
"components": {
"schemas": {
"googlerpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/components/schemas/protobufAny"
}
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"v1GetValidatorsResponse": {
"type": "object",
"example": {
"items": {
"1": {
"BLSKey": "0x1234567890abcdef",
"isOptedIn": true
}
}
},
"properties": {
"items": {
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/v1SlotInfo"
},
"description": "Map of slots numbers to validator bls key and isOptedIn boolean value"
}
},
"description": "Response for GetValidators",
"title": "GetValidatorsResponse"
},
"v1SlotInfo": {
"type": "object",
"properties": {
"BLSKey": {
"type": "string"
},
"isOptedIn": {
"type": "boolean"
}
}
}
}
}
}