diff --git a/apis/validator/sync_committee_contribution.yaml b/apis/validator/sync_committee_contribution.yaml new file mode 100644 index 00000000..d4b4eb22 --- /dev/null +++ b/apis/validator/sync_committee_contribution.yaml @@ -0,0 +1,43 @@ +get: + tags: + - ValidatorRequiredApi + - Validator + operationId: "produceSyncCommitteeContribution" + summary: "Produce a sync committee contribution" + description: "Requests that the beacon node produce a sync committee contribution." + parameters: + - name: slot + in: query + required: true + description: "The slot for which a sync committee contribution should be created." + schema: + $ref: '../../beacon-node-oapi.yaml#/components/schemas/Uint64' + - name: subcommittee_index + in: query + description: "the subcommittee index for which to produce the contribution." + required: true + schema: + $ref: "../../beacon-node-oapi.yaml#/components/schemas/Uint64" + - name: beacon_block_root + in: query + description: "the block root for which to produce the contribution." + required: true + schema: + $ref: "../../beacon-node-oapi.yaml#/components/schemas/Root" + responses: + "200": + description: Success response + content: + application/json: + schema: + title: produceSyncCommitteeContributionResponse + type: object + properties: + data: + $ref: '../../beacon-node-oapi.yaml#/components/schemas/Altair.SyncCommitteeContribution' + "400": + $ref: '../../beacon-node-oapi.yaml#/components/responses/InvalidRequest' + "500": + $ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError' + "503": + $ref: '../../beacon-node-oapi.yaml#/components/responses/CurrentlySyncing' diff --git a/beacon-node-oapi.yaml b/beacon-node-oapi.yaml index 1ceb3340..e7637c15 100644 --- a/beacon-node-oapi.yaml +++ b/beacon-node-oapi.yaml @@ -136,6 +136,8 @@ paths: $ref: "./apis/validator/beacon_committee_subscriptions.yaml" /eth/v1/validator/sync_committee_subscriptions: $ref: "./apis/validator/sync_committee_subscriptions.yaml" + /eth/v1/validator/sync_committee_contribution: + $ref: "./apis/validator/sync_committee_contribution.yaml" /eth/v1/validator/contribution_and_proofs: $ref: "./apis/validator/sync_committee_contribution_and_proof.yaml" diff --git a/types/altair/sync_committee.yaml b/types/altair/sync_committee.yaml index 3af5387b..80d55f71 100644 --- a/types/altair/sync_committee.yaml +++ b/types/altair/sync_committee.yaml @@ -70,9 +70,9 @@ Altair: - $ref: "../primitive.yaml#/Uint64" - description: "The slot at which the validator is providing a sync committee contribution." beacon_block_root: - allOf: - - $ref: '../primitive.yaml#/Root' - - description: "Block root for this contribution." + allOf: + - $ref: '../primitive.yaml#/Root' + - description: "Block root for this contribution." subcommittee_index: allOf: - $ref: '../primitive.yaml#/Uint64' @@ -84,9 +84,8 @@ Altair: - example: "0x01" signature: allOf: - - $ref: '../primitive.yaml#/Signature' - - description: 'Signature by the validator(s) over the block root of `slot`' - + - $ref: '../primitive.yaml#/Signature' + - description: 'Signature by the validator(s) over the block root of `slot`' ValidatorsByIndex: type: array items: