generated from mintlify/starter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
debug-openapi-spec.json
216 lines (216 loc) · 6.53 KB
/
debug-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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
{
"openapi": "3.0.0",
"info": {
"title": "Debug API",
"version": "1.0.0",
"license": {
"name": "Business Source License 1.1",
"url": "https://github.com/primev/mev-commit/blob/main/LICENSE"
}
},
"paths": {
"/v1/debug/cancel_transaction/{txHash}": {
"post": {
"summary": "CancelTransaction",
"description": "CancelTransaction is called by the provider to cancel a transaction sent from this wallet.",
"operationId": "DebugService_CancelTransaction",
"responses": {
"200": {
"description": "A successful response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/v1CancelTransactionResponse"
}
}
}
},
"default": {
"description": "An unexpected error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/googlerpcStatus"
}
}
}
}
},
"parameters": [
{
"name": "txHash",
"description": "Hex string encoding of the hash of the transaction that the bidder wants to cancel.",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
]
}
},
"/v1/debug/pending_transactions": {
"get": {
"summary": "GetPendingTransactions",
"description": "GetPendingTransactions is called by the provider to get the pending transactions for the wallet.",
"operationId": "DebugService_GetPendingTransactions",
"responses": {
"200": {
"description": "A successful response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/v1PendingTransactionsResponse"
}
}
}
},
"default": {
"description": "An unexpected error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/googlerpcStatus"
}
}
}
}
}
}
},
"/v1/debug/topology": {
"get": {
"summary": "GetTopology",
"description": "GetTopology is called by the user to get the topology of the node. The topology\nincludes connectivity information about the node.",
"operationId": "DebugService_GetTopology",
"responses": {
"200": {
"description": "A successful response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/v1TopologyResponse"
}
}
}
},
"default": {
"description": "An unexpected error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/googlerpcStatus"
}
}
}
}
}
}
}
},
"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": {}
},
"protobufNullValue": {
"type": "string",
"description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`."
},
"v1CancelTransactionResponse": {
"type": "object",
"example": {
"txHash": "71c1348f2d7ff7e814f9c3617983703435ea7446de420aeac488bf1de35737e8"
},
"properties": {
"txHash": {
"type": "string",
"description": "Hex string encoding of the hash of the transaction that the bidder wants to cancel.",
"pattern": "[a-fA-F0-9]{64}"
}
},
"description": "Hash of the cancellation transaction request.",
"title": "Cancel response",
"required": ["txHash"]
},
"v1PendingTransactionsResponse": {
"type": "object",
"properties": {
"pendingTransactions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/v1TransactionInfo"
},
"description": "List of pending transactions in the provider provider_registry."
}
},
"description": "Transaction info returned by the provider.",
"title": "Pending transactions list",
"required": ["pendingTransactions"]
},
"v1TopologyResponse": {
"type": "object",
"properties": {
"topology": {
"type": "object",
"description": "Topology of the node."
}
},
"description": "Topology of the node.",
"title": "Topology",
"required": ["topology"]
},
"v1TransactionInfo": {
"type": "object",
"example": {
"created": "2009-11-10 23:00:00 +0000 UTC m=+0.000000001",
"nonce": 1234,
"txHash": "71c1348f2d7ff7e814f9c3617983703435ea7446de420aeac488bf1de35737e8"
},
"properties": {
"txHash": {
"type": "string",
"description": "Hex string encoding of the hash of the transaction that the bidder wants to include in the block.",
"pattern": "[a-fA-F0-9]{64}"
},
"nonce": {
"type": "string",
"format": "int64",
"description": "Nonce used for the transaction."
},
"created": {
"type": "string",
"description": "Time when the transaction was created."
}
},
"description": "Transaction info returned by the provider.",
"title": "Transaction info",
"required": ["txHash", "nonce", "created"]
}
}
}
}