Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ There are likely to be descriptions etc outside of the list below, but new query
| [#467](https://github.com/ethereum/beacon-APIs/pull/467) `POST /eth/v1/beacon/blocks` deprecated | | | | | |
| [#467](https://github.com/ethereum/beacon-APIs/pull/467) `POST /eth/v1/beacon/blinded_blocks` deprecated | | | | | |
| [#472](https://github.com/ethereum/beacon-APIs/pull/472) `single_attestation EVENT` added | | | | | |
| [#494](https://github.com/ethereum/beacon-APIs/pull/494) `GET /eth/v1/beacon/deposit_snapshot` deprecated | | | | | |
| [#494](https://github.com/ethereum/beacon-APIs/pull/494) `GET /eth/v1/beacon/deposit_snapshot` deprecated | | |
| [#500](https://github.com/ethereum/beacon-APIs/pull/500) `GET /eth/v1/beacon/states/{state_id}/pending_deposits` added | | |
| [#500](https://github.com/ethereum/beacon-APIs/pull/500) `GET /eth/v1/beacon/states/{state_id}/pending_partial_withdrawals` added | | |


The Following are no longer in the Standard API, removed since the latest version.
Expand Down
51 changes: 51 additions & 0 deletions apis/beacon/states/pending_deposits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
get:
operationId: "getPendingDeposits"
summary: "Get State Pending Deposits"
description: |
Returns pending deposits for state with given 'stateId'. Should return 400 if requested before electra.
tags:
- Beacon
parameters:
- name: state_id
in: path
$ref: '../../../beacon-node-oapi.yaml#/components/parameters/StateId'
responses:
"200":
description: Success
content:
application/json:
schema:
title: GetPendingDepositsResponse
type: object
required: [execution_optimistic, finalized, data]
properties:
execution_optimistic:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ExecutionOptimistic"
finalized:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Finalized"
data:
type: array
items:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Electra.PendingDeposit"
maxItems: 134217728
"400":
description: "Invalid state ID"
content:
application/json:
schema:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
example:
code: 400
message: "Invalid state ID: current"
"404":
description: "State not found"
content:
application/json:
schema:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
example:
code: 404
message: "State not found"
"500":
$ref: '../../../beacon-node-oapi.yaml#/components/responses/InternalError'

51 changes: 51 additions & 0 deletions apis/beacon/states/pending_partial_withdrawals.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
get:
operationId: "getPendingPartialWithdrawals"
summary: "Get State Pending Partial Withdrawals"
description: |
Returns pending partial withdrawals for state with given 'stateId'. Should return 400 if requested before electra.
tags:
- Beacon
parameters:
- name: state_id
in: path
$ref: '../../../beacon-node-oapi.yaml#/components/parameters/StateId'
responses:
"200":
description: Success
content:
application/json:
schema:
title: GetPendingPartialWithdrawalsResponse
type: object
required: [execution_optimistic, finalized, data]
properties:
execution_optimistic:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ExecutionOptimistic"
finalized:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Finalized"
data:
type: array
items:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Electra.PendingPartialWithdrawal"
maxItems: 134217728
"400":
description: "Invalid state ID"
content:
application/json:
schema:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
example:
code: 400
message: "Invalid state ID: current"
"404":
description: "State not found"
content:
application/json:
schema:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
example:
code: 404
message: "State not found"
"500":
$ref: '../../../beacon-node-oapi.yaml#/components/responses/InternalError'

9 changes: 9 additions & 0 deletions beacon-node-oapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ paths:
$ref: "./apis/beacon/states/sync_committees.yaml"
/eth/v1/beacon/states/{state_id}/randao:
$ref: "./apis/beacon/states/randao.yaml"
/eth/v1/beacon/states/{state_id}/pending_deposits:
$ref: "./apis/beacon/states/pending_deposits.yaml"
/eth/v1/beacon/states/{state_id}/pending_partial_withdrawals:
$ref: "./apis/beacon/states/pending_partial_withdrawals.yaml"

/eth/v1/beacon/headers:
$ref: "./apis/beacon/blocks/headers.yaml"
/eth/v1/beacon/headers/{block_id}:
Expand Down Expand Up @@ -425,6 +430,10 @@ components:
$ref: './types/electra/light_client.yaml#/Electra/LightClientOptimisticUpdate'
Electra.BlobSidecars:
$ref: './types/electra/blob_sidecar.yaml#/Electra/BlobSidecars'
Electra.PendingDeposit:
$ref: './types/electra/deposit.yaml#/Electra/PendingDeposit'
Electra.PendingPartialWithdrawal:
$ref: './types/electra/withdrawal.yaml#/Electra/PendingPartialWithdrawal'
Node:
$ref: './types/fork_choice.yaml#/Node'
ExtraData:
Expand Down