forked from ethereum/beacon-APIs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beacon-node-oapi.yaml
171 lines (160 loc) · 5.74 KB
/
beacon-node-oapi.yaml
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
openapi: "3.0.3"
info:
title: "Beacon Node API"
description: "API specification for the beacon node, which enables users to query and participate in Ethereum 2.0 phase 0 beacon chain."
version: "0.11.1"
contact:
name: Ethereum Foundation
url: https://ethereum.org
email: "dont-contact@ethereum.org"
license:
name: "Apache 2.0"
url: "https://www.apache.org/licenses/LICENSE-2.0.html"
servers:
- url: "{server_url}"
variables:
server_url:
description: "Beacon node API url"
default: "http://public-mainnet-node.ethereum.org/api"
tags:
- name: Beacon
description: Set of endpoints to query beacon chain.
- name: Config
description: Endpoints to query chain configuration, specification, and fork schedules.
- name: MinimalValidatorApi
description: The minimal set of endpoints to enable a working validator implementation.
- name: Node
description: Endpoints to query node related informations
- name: Validator
description: Endpoints intended for validator clients
paths:
/v1/beacon/genesis:
$ref: "./apis/beacon/genesis.yaml"
/v1/beacon/states/{state_id}/root:
$ref: "./apis/beacon/states/root.yaml"
/v1/beacon/states/{state_id}/fork:
$ref: "./apis/beacon/states/fork.yaml"
/v1/beacon/states/{state_id}/finality_checkpoints:
$ref: "./apis/beacon/states/finality_checkpoints.yaml"
/v1/beacon/states/{state_id}/validators:
$ref: "./apis/beacon/states/validators.yaml"
/v1/beacon/states/{state_id}/validators/{validator_id}:
$ref: "./apis/beacon/states/validator.yaml"
/v1/beacon/states/{state_id}/committees/{epoch}:
$ref: "./apis/beacon/states/committee.yaml"
/v1/beacon/headers:
$ref: "./apis/beacon/blocks/headers.yaml"
/v1/beacon/headers/{block_id}:
$ref: "./apis/beacon/blocks/header.yaml"
/v1/beacon/blocks/{block_id}:
$ref: "./apis/beacon/blocks/block.yaml"
/v1/beacon/blocks/{block_id}/root:
$ref: "./apis/beacon/blocks/root.yaml"
/v1/beacon/blocks/{block_id}/attestations:
$ref: "./apis/beacon/blocks/attestations.yaml"
/v1/beacon/pool/attestations:
$ref: "./apis/beacon/pool/attestations.yaml"
/v1/beacon/pool/atttester_slashings:
$ref: "./apis/beacon/pool/attester_slashings.yaml"
/v1/beacon/pool/proposer_slashings:
$ref: "./apis/beacon/pool/proposer_slashings.yaml"
/v1/beacon/pool/voluntary_exits:
$ref: "./apis/beacon/pool/voluntary_exists.yaml"
/v1/node/identity:
$ref: "./apis/node/identity.yaml"
/v1/node/peers:
$ref: "./apis/node/peers.yaml"
/v1/node/peers/{peer_id}:
$ref: "./apis/node/peer.yaml"
/v1/node/version:
$ref: "./apis/node/version.yaml"
/v1/node/syncing:
$ref: "./apis/node/syncing.yaml"
/v1/node/health:
$ref: "./apis/node/health.yaml"
/v1/config/fork_schedule:
$ref: "./apis/config/fork_schedule.yaml"
/v1/config/spec:
$ref: "./apis/config/spec.yaml"
/v1/config/deposit_contract:
$ref: "./apis/config/deposit_contract.yaml"
/validator/duties/{epoch}/attester:
$ref: "./apis/validator/duties.yaml#/attester"
/validator/duties/{epoch}/proposer:
$ref: "./apis/validator/duties.yaml#/proposer"
/validator/beacon_committee_subscriptions:
$ref: "./apis/validator/beacon_committee_subscriptions.yaml#/create"
/validator/beacon_committee_subscription/{committee_index}/attestations:
$ref: "./apis/validator/beacon_committee_subscriptions.yaml#/attestations"
/validator/aggregate_and_proof:
$ref: "./apis/validator/aggregate_and_proof.yaml"
/validator/attestation:
$ref: "./apis/validator/attestation.yaml"
/validator/block:
$ref: "./apis/validator/block.yaml"
components:
schemas:
BeaconBlock:
$ref: './types/block.yaml#/schemas/BeaconBlock'
SignedBeaconBlock:
$ref: './types/block.yaml#/schemas/SignedBeaconBlock'
SignedBeaconBlockHeader:
$ref: './types/block.yaml#/schemas/SignedBeaconBlockHeader'
ValidatorResponse:
$ref: './types/api.yaml#/ValidatorResponse'
ValidatorStatus:
$ref: './types/api.yaml#/ValidatorStatus'
Committee:
$ref: './types/api.yaml#/Committee'
AttesterSlashing:
$ref: './types/attester_slashing.yaml#/AttesterSlashing'
ProposerSlashing:
$ref: './types/proposer_slashing.yaml#/ProposerSlashing'
SignedVoluntaryExit:
$ref: './types/voluntary_exit.yaml#/SignedVoluntaryExit'
AttesterDuty:
$ref: './types/validator.yaml#/AttesterDuty'
SignedAggregateAndProof:
$ref: './types/validator.yaml#/SignedAggregateAndProof'
Attestation:
$ref: './types/attestation.yaml#/schemas/Attestation'
Fork:
$ref: './types/misc.yaml#/schemas/Fork'
Checkpoint:
$ref: './types/misc.yaml#/schemas/Checkpoint'
PublicKey:
$ref: './types/primitive.yaml#/schemas/PublicKey'
Uint64:
$ref: './types/primitive.yaml#/schemas/Uint64'
NetworkIdentity:
$ref: './types/p2p.yaml#/NetworkIdentity'
Peer:
$ref: './types/p2p.yaml#/Peer'
PeerId:
$ref: './types/p2p.yaml#/PeerId'
GenesisTime:
$ref: './types/primitive.yaml#/schemas/GenesisTime'
Version:
$ref: './types/primitive.yaml#/schemas/Version'
ForkVersion:
$ref: './types/primitive.yaml#/schemas/ForkVersion'
Root:
$ref: './types/primitive.yaml#/schemas/Root'
Hex:
$ref: './types/primitive.yaml#/schemas/Root'
Signature:
$ref: './types/primitive.yaml#/schemas/Signature'
parameters:
StateId:
$ref: './params/index.yaml#/StateId'
BlockId:
$ref: './params/index.yaml#/BlockId'
responses:
InvalidRequest:
$ref: './types/http.yaml#/InvalidRequest'
InternalError:
$ref: './types/http.yaml#/InternalError'
NotFound:
$ref: './types/http.yaml#/NotFound'
CurrentlySyncing:
$ref: './types/http.yaml#/CurrentlySyncing'