Skip to content

Commit b690ffa

Browse files
committed
deploy: 69e56e7
1 parent 4a030a2 commit b690ffa

File tree

1 file changed

+197
-0
lines changed

1 file changed

+197
-0
lines changed

beacon-node-oapi.yaml

Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2282,6 +2282,188 @@ paths:
22822282
example:
22832283
code: 500
22842284
message: Internal server error
2285+
'/eth/v1/beacon/states/{state_id}/pending_consolidations':
2286+
get:
2287+
operationId: getPendingConsolidations
2288+
summary: Get State Pending Consolidations
2289+
description: |
2290+
Returns pending consolidations for state with given 'stateId'. Should return 400 if the state retrieved is prior to Electra.
2291+
tags:
2292+
- Beacon
2293+
parameters:
2294+
- name: state_id
2295+
in: path
2296+
required: true
2297+
example: head
2298+
schema:
2299+
type: string
2300+
description: |
2301+
State identifier.
2302+
Can be one of: "head" (canonical head in node's view), "genesis", "finalized", "justified", \<slot\>, \<hex encoded stateRoot with 0x prefix\>.
2303+
responses:
2304+
'200':
2305+
description: Success
2306+
headers:
2307+
Eth-Consensus-Version:
2308+
description: The active consensus version to which the pending consolidations belong.
2309+
required: true
2310+
schema:
2311+
type: string
2312+
enum:
2313+
- phase0
2314+
- altair
2315+
- bellatrix
2316+
- capella
2317+
- deneb
2318+
- electra
2319+
example: electra
2320+
content:
2321+
application/json:
2322+
schema:
2323+
title: GetPendingDepositsResponse
2324+
type: object
2325+
required:
2326+
- version
2327+
- execution_optimistic
2328+
- finalized
2329+
- data
2330+
properties:
2331+
version:
2332+
type: string
2333+
enum:
2334+
- phase0
2335+
- altair
2336+
- bellatrix
2337+
- capella
2338+
- deneb
2339+
- electra
2340+
example: electra
2341+
execution_optimistic:
2342+
type: boolean
2343+
example: false
2344+
description: 'True if the response references an unverified execution payload. Optimistic information may be invalidated at a later time. If the field is not present, assume the False value.'
2345+
finalized:
2346+
type: boolean
2347+
example: false
2348+
description: 'True if the response references the finalized history of the chain, as determined by fork choice. If the field is not present, additional calls are necessary to compare the epoch of the requested information with the finalized checkpoint.'
2349+
data:
2350+
type: array
2351+
items:
2352+
type: object
2353+
description: 'The [`PendingConsolidation`](https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/electra/beacon-chain.md#pendingconsolidation) object from the CL Electra spec.'
2354+
required:
2355+
- source_index
2356+
- target_index
2357+
properties:
2358+
source_index:
2359+
type: string
2360+
example: '1'
2361+
description: Index of validator to consolidate from.
2362+
target_index:
2363+
type: string
2364+
example: '1'
2365+
description: Index of validator to consolidate to.
2366+
maxItems: 262144
2367+
application/octet-stream:
2368+
schema:
2369+
description: 'SSZ serialized `List[PendingConsolidation, PENDING_CONSOLIDATIONS_LIMIT]` bytes. Use Accept header to choose this response type'
2370+
'400':
2371+
description: Invalid request syntax.
2372+
content:
2373+
application/json:
2374+
schema:
2375+
type: object
2376+
required:
2377+
- code
2378+
- message
2379+
properties:
2380+
code:
2381+
description: Either specific error code in case of invalid request or http status code
2382+
type: number
2383+
example: 400
2384+
message:
2385+
description: Message describing error
2386+
type: string
2387+
stacktraces:
2388+
description: 'Optional stacktraces, sent when node is in debug mode'
2389+
type: array
2390+
items:
2391+
type: string
2392+
'404':
2393+
description: Not found
2394+
content:
2395+
application/json:
2396+
schema:
2397+
type: object
2398+
required:
2399+
- code
2400+
- message
2401+
properties:
2402+
code:
2403+
description: Either specific error code in case of invalid request or http status code
2404+
type: number
2405+
example: 404
2406+
message:
2407+
description: Message describing error
2408+
type: string
2409+
stacktraces:
2410+
description: 'Optional stacktraces, sent when node is in debug mode'
2411+
type: array
2412+
items:
2413+
type: string
2414+
example:
2415+
code: 404
2416+
message: Requested item not found
2417+
'415':
2418+
description: Supplied content-type is not supported.
2419+
content:
2420+
application/json:
2421+
schema:
2422+
type: object
2423+
required:
2424+
- code
2425+
- message
2426+
properties:
2427+
code:
2428+
description: 'The media type in "Content-Type" header is unsupported, and the request has been rejected. This occurs when a HTTP request supplies a payload in a content-type that the server is not able to handle.'
2429+
type: number
2430+
example: 415
2431+
message:
2432+
description: Message describing error
2433+
type: string
2434+
stacktraces:
2435+
description: 'Optional stacktraces, sent when node is in debug mode'
2436+
type: array
2437+
items:
2438+
type: string
2439+
example:
2440+
code: 415
2441+
message: Cannot read the supplied content type.
2442+
'500':
2443+
description: Beacon node internal error.
2444+
content:
2445+
application/json:
2446+
schema:
2447+
type: object
2448+
required:
2449+
- code
2450+
- message
2451+
properties:
2452+
code:
2453+
description: Either specific error code in case of invalid request or http status code
2454+
type: number
2455+
example: 404
2456+
message:
2457+
description: Message describing error
2458+
type: string
2459+
stacktraces:
2460+
description: 'Optional stacktraces, sent when node is in debug mode'
2461+
type: array
2462+
items:
2463+
type: string
2464+
example:
2465+
code: 500
2466+
message: Internal server error
22852467
'/eth/v1/beacon/states/{state_id}/pending_deposits':
22862468
get:
22872469
operationId: getPendingDeposits
@@ -74345,6 +74527,21 @@ components:
7434574527
type: string
7434674528
example: '1'
7434774529
description: The slot at which the deposit request was processed.
74530+
Electra.PendingConsolidation:
74531+
type: object
74532+
description: 'The [`PendingConsolidation`](https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/electra/beacon-chain.md#pendingconsolidation) object from the CL Electra spec.'
74533+
required:
74534+
- source_index
74535+
- target_index
74536+
properties:
74537+
source_index:
74538+
type: string
74539+
example: '1'
74540+
description: Index of validator to consolidate from.
74541+
target_index:
74542+
type: string
74543+
example: '1'
74544+
description: Index of validator to consolidate to.
7434874545
Electra.PendingPartialWithdrawal:
7434974546
type: object
7435074547
description: 'The [`PendingPartialWithdrawal`](https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/electra/beacon-chain.md#pendingpartialwithdrawal) object from the CL Electra spec.'

0 commit comments

Comments
 (0)