2019-05-09 13:49:59 +00:00
openapi : "3.0.2"
info :
2019-05-13 05:07:15 +00:00
title : "Minimal Beacon Node API for Validator"
2019-05-13 06:25:22 +00:00
description : "A minimal API specification for the beacon node, which enables a validator to connect and perform its obligations on the Ethereum 2.0 phase 0 beacon chain."
2019-05-27 03:01:36 +00:00
version : "0.2.0"
2019-05-13 06:25:22 +00:00
license :
name : "Apache 2.0"
url : "https://www.apache.org/licenses/LICENSE-2.0.html"
2019-05-13 05:52:34 +00:00
tags :
2019-05-20 03:49:06 +00:00
- name : MinimalSet
2019-05-13 05:52:34 +00:00
description : The minimal set of endpoints to enable a working validator implementation.
2019-05-20 03:49:06 +00:00
- name : OptionalSet
2019-05-13 05:52:34 +00:00
description : Extra endpoints which are nice-to-haves.
2019-05-09 13:49:59 +00:00
paths :
/node/version :
get :
2019-05-13 05:07:15 +00:00
tags :
2019-05-20 03:49:06 +00:00
- MinimalSet
2019-05-09 13:49:59 +00:00
summary : "Get version string of the running beacon node."
2019-05-13 05:07:15 +00:00
description : "Requests that the beacon node identify information about its implementation in a format similar to a [HTTP User-Agent](https://tools.ietf.org/html/rfc7231#section-5.5.3) field."
2019-05-09 13:49:59 +00:00
responses :
200 :
2019-05-10 04:03:59 +00:00
description : Request successful
2019-05-09 13:49:59 +00:00
content :
application/json :
schema :
2019-05-13 05:07:15 +00:00
$ref : '#/components/schemas/version'
2019-05-10 04:03:59 +00:00
500 :
2019-05-13 05:07:15 +00:00
$ref : '#/components/responses/InternalError'
2019-05-09 13:49:59 +00:00
/node/genesis_time :
get :
2019-05-13 05:07:15 +00:00
tags :
2019-05-20 03:49:06 +00:00
- MinimalSet
2019-05-09 13:49:59 +00:00
summary : "Get the genesis_time parameter from beacon node configuration."
2019-05-13 05:07:15 +00:00
description : "Requests the genesis_time parameter from the beacon node, which should be consistent across all beacon nodes that follow the same beacon chain."
2019-05-09 13:49:59 +00:00
responses :
200 :
2019-05-10 04:03:59 +00:00
description : Request successful
2019-05-09 13:49:59 +00:00
content :
application/json :
schema :
2019-05-10 04:03:59 +00:00
$ref : '#/components/schemas/genesis_time'
500 :
$ref : '#/components/responses/InternalError'
2019-05-13 05:07:15 +00:00
2019-05-09 13:49:59 +00:00
/node/syncing :
get :
2019-05-13 05:07:15 +00:00
tags :
2019-05-20 03:49:06 +00:00
- MinimalSet
2019-05-09 13:49:59 +00:00
summary : "Poll to see if the the beacon node is syncing."
description : "Requests the beacon node to describe if it's currently syncing or not, and if it is, what block it is up to. This is modelled after the Eth1.0 JSON-RPC eth_syncing call.."
responses :
200 :
2019-05-10 04:03:59 +00:00
description : Request successful
2019-05-09 13:49:59 +00:00
content :
application/json :
schema :
2019-05-10 04:03:59 +00:00
type : object
properties :
is_syncing :
type : boolean
description : "A boolean of whether the node is currently syncing or not."
sync_status :
$ref : '#/components/schemas/SyncingStatus'
500 :
$ref : '#/components/responses/InternalError'
2019-05-13 05:52:34 +00:00
/node/fork :
get :
tags :
2019-05-20 03:49:06 +00:00
- OptionalSet
2019-05-13 05:52:34 +00:00
summary : "Get fork information from running beacon node."
description : "Requests the beacon node to provide which fork version it is currently on."
responses :
200 :
description : Request successful
content :
application/json :
schema :
type : object
properties :
fork :
$ref : '#/components/schemas/Fork'
chain_id :
type : integer
format : uint64
2019-05-27 01:21:23 +00:00
description : "Sometimes called the network id, this number discerns the active chain for the beacon node. Analogous to Eth1.0 JSON-RPC net_version."
2019-05-13 05:52:34 +00:00
500 :
$ref : '#/components/responses/InternalError'
2019-05-13 05:07:15 +00:00
2019-05-09 13:49:59 +00:00
/validator/duties :
get :
2019-05-13 05:07:15 +00:00
tags :
2019-05-20 03:49:06 +00:00
- MinimalSet
2019-05-09 13:49:59 +00:00
summary : "Get validator duties for the requested validators."
2019-05-27 01:21:23 +00:00
description : "Requests the beacon node to provide a set of _duties_, which are actions that should be performed by validators, for a particular epoch. Duties should only need to be checked once per epoch, however a chain reorganization (of > MIN_SEED_LOOKAHEAD epochs) could occur, resulting in a change of duties. For full safety, this API call should be polled at every slot to ensure that chain reorganizations are recognized, and to ensure that the beacon node is properly synchronized."
2019-05-13 05:07:15 +00:00
parameters :
2019-05-09 13:49:59 +00:00
- name : validator_pubkeys
in : query
required : true
2019-05-10 04:03:59 +00:00
description : "An array of hex-encoded BLS public keys"
2019-05-09 13:49:59 +00:00
schema :
type : array
items :
2019-05-10 04:03:59 +00:00
$ref : '#/components/schemas/pubkey'
minItems : 1
2019-05-24 21:59:35 +00:00
- name : epoch
in : query
required : false
schema :
type : integer
2019-05-09 13:49:59 +00:00
responses :
200 :
description : Success response
content :
application/json :
schema :
2019-05-10 04:03:59 +00:00
type : array
items :
$ref : '#/components/schemas/ValidatorDuty'
400 :
$ref : '#/components/responses/InvalidRequest'
2019-05-24 21:59:35 +00:00
406 :
description : "Duties cannot be provided for the requested epoch."
2019-05-10 04:03:59 +00:00
500 :
$ref : '#/components/responses/InternalError'
2019-05-09 13:49:59 +00:00
503 :
2019-05-10 04:03:59 +00:00
$ref : '#/components/responses/CurrentlySyncing'
2019-05-13 05:07:15 +00:00
2019-05-09 13:49:59 +00:00
/validator/block :
get :
2019-05-13 05:07:15 +00:00
tags :
2019-05-20 03:49:06 +00:00
- MinimalSet
2019-05-09 13:49:59 +00:00
summary : "Produce a new block, without signature."
2019-05-13 05:07:15 +00:00
description : "Requests a beacon node to produce a valid block, which can then be signed by a validator."
parameters :
2019-05-09 13:49:59 +00:00
- name : slot
in : query
required : true
2019-05-10 04:03:59 +00:00
description : "The slot for which the block should be proposed."
2019-05-09 13:49:59 +00:00
schema :
type : integer
2019-05-10 04:03:59 +00:00
format : uint64
2019-05-09 13:49:59 +00:00
- name : randao_reveal
in : query
required : true
2019-05-13 05:07:15 +00:00
description : "The validator's randao reveal value."
2019-05-09 13:49:59 +00:00
schema :
type : string
format : byte
responses :
200 :
description : Success response
content :
application/json :
schema :
2019-05-10 04:03:59 +00:00
$ref : '#/components/schemas/BeaconBlock'
400 :
$ref : '#/components/responses/InvalidRequest'
500 :
$ref : '#/components/responses/InternalError'
503 :
$ref : '#/components/responses/CurrentlySyncing'
2019-05-09 13:49:59 +00:00
post :
2019-05-13 05:07:15 +00:00
tags :
2019-05-20 03:49:06 +00:00
- MinimalSet
2019-05-13 05:52:34 +00:00
summary : "Publish a signed block."
2019-05-24 21:59:35 +00:00
description : "Instructs the beacon node to broadcast a newly signed beacon block to the beacon network, to be included in the beacon chain. The beacon node is not required to validate the signed `BeaconBlock`, and a successful response (20X) only indicates that the broadcast has been successful. The beacon node is expected to integrate the new block into its state, and therefore validate the block internally, however blocks which fail the validation are still broadcast but a different status code is returned (202)"
2019-05-13 05:07:15 +00:00
parameters :
2019-05-09 13:49:59 +00:00
- name : beacon_block
in : query
required : true
2019-05-13 05:07:15 +00:00
description : "The `BeaconBlock` object, as sent from the beacon node originally, but now with the signature field completed."
2019-05-09 13:49:59 +00:00
schema :
2019-05-10 04:03:59 +00:00
$ref : '#/components/schemas/BeaconBlock'
2019-05-09 13:49:59 +00:00
responses :
200 :
2019-05-24 21:59:35 +00:00
description : "The block was validated successfully and has been broadcast. It has also been integrated into the beacon node's database."
202 :
description : "The block failed validation, but was successfully broadcast anyway. It was not integrated into the beacon node's database."
2019-05-10 04:03:59 +00:00
400 :
$ref : '#/components/responses/InvalidRequest'
500 :
$ref : '#/components/responses/InternalError'
2019-05-09 13:49:59 +00:00
503 :
2019-05-10 04:03:59 +00:00
$ref : '#/components/responses/CurrentlySyncing'
2019-05-13 05:07:15 +00:00
2019-05-09 13:49:59 +00:00
/validator/attestation :
get :
2019-05-13 05:07:15 +00:00
tags :
2019-05-20 03:49:06 +00:00
- MinimalSet
2019-05-09 13:49:59 +00:00
summary : "Produce an attestation, without signature."
2019-05-13 05:07:15 +00:00
description : "Requests that the beacon node produce an IndexedAttestation, with a blank signature field, which the validator will then sign."
parameters :
2019-05-24 21:59:35 +00:00
- name : validator_pubkey
in : query
required : true
description : "Uniquely identifying which validator this attestation is to be produced for."
schema :
$ref : '#/components/schemas/pubkey'
- name : poc_bit
in : query
required : true
2019-05-27 01:21:23 +00:00
description : "The proof-of-custody bit that is to be reported by the requesting validator. This bit will be inserted into the appropriate location in the returned `IndexedAttestation`."
2019-05-24 21:59:35 +00:00
schema :
2019-05-27 01:21:23 +00:00
type : integer
format : uint32
minimum : 0
maximum : 1
2019-05-09 13:49:59 +00:00
- name : slot
in : query
required : true
2019-05-10 04:03:59 +00:00
description : "The slot for which the attestation should be proposed."
2019-05-09 13:49:59 +00:00
schema :
type : integer
- name : shard
in : query
required : true
2019-05-10 04:03:59 +00:00
description : "The shard number for which the attestation is to be proposed."
2019-05-09 13:49:59 +00:00
schema :
type : integer
responses :
200 :
description : Success response
content :
application/json :
schema :
2019-05-10 04:03:59 +00:00
$ref : '#/components/schemas/IndexedAttestation'
400 :
$ref : '#/components/responses/InvalidRequest'
500 :
$ref : '#/components/responses/InternalError'
503 :
$ref : '#/components/responses/CurrentlySyncing'
2019-05-09 13:49:59 +00:00
post :
2019-05-13 05:07:15 +00:00
tags :
2019-05-20 03:49:06 +00:00
- MinimalSet
2019-05-24 21:59:35 +00:00
summary : "Publish a signed attestation."
description : "Instructs the beacon node to broadcast a newly signed IndexedAttestation object to the intended shard subnet. The beacon node is not required to validate the signed IndexedAttestation, and a successful response (20X) only indicates that the broadcast has been successful. The beacon node is expected to integrate the new attestation into its state, and therefore validate the attestation internally, however attestations which fail the validation are still broadcast but a different status code is returned (202)"
2019-05-09 13:49:59 +00:00
parameters :
- name : attestation
in : query
required : true
2019-05-13 05:07:15 +00:00
description : "An `IndexedAttestation` structure, as originally provided by the beacon node, but now with the signature field completed."
2019-05-09 13:49:59 +00:00
schema :
2019-05-10 04:03:59 +00:00
$ref : '#/components/schemas/IndexedAttestation'
2019-05-09 13:49:59 +00:00
responses :
200 :
2019-05-24 21:59:35 +00:00
description : "The attestation was validated successfully and has been broadcast. It has also been integrated into the beacon node's database."
202 :
description : "The attestation failed validation, but was successfully broadcast anyway. It was not integrated into the beacon node's database."
2019-05-10 04:03:59 +00:00
400 :
$ref : '#/components/responses/InvalidRequest'
500 :
$ref : '#/components/responses/InternalError'
2019-05-09 13:49:59 +00:00
503 :
2019-05-10 04:03:59 +00:00
$ref : '#/components/responses/CurrentlySyncing'
components :
schemas :
2019-05-13 05:07:15 +00:00
pubkey :
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{96}$"
description : "The validator's BLS public key, uniquely identifying them. _48-bytes, hex encoded with 0x prefix, case insensitive._"
example : "0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc"
version :
type : string
description : "A string which uniquely identifies the client implementation and its version; similar to [HTTP User-Agent](https://tools.ietf.org/html/rfc7231#section-5.5.3)."
example : "Lighthouse / v0.1.5 (Linux x86_64)"
genesis_time :
type : integer
format : uint64
2019-05-24 21:59:35 +00:00
description : "The genesis_time configured for the beacon node, which is the unix time at which the Eth2.0 chain began."
2019-05-13 05:07:15 +00:00
example : 1557716289
2019-05-10 04:03:59 +00:00
ValidatorDuty :
type : object
properties :
validator_pubkey :
$ref : '#/components/schemas/pubkey'
attestation_slot :
type : integer
format : uint64
description : "The slot at which the validator must attest."
attestation_shard :
type : integer
format : uint64
description : "The shard in which the validator must attest."
2019-05-20 03:49:06 +00:00
block_proposal_slot :
2019-05-10 04:03:59 +00:00
type : integer
format : uint64
nullable : true
description : "The slot in which a validator must propose a block, or `null` if block production is not required."
SyncingStatus :
type : object
nullable : true
properties :
2019-05-24 21:59:35 +00:00
starting_slot :
2019-05-10 04:03:59 +00:00
type : integer
format : uint64
2019-05-24 21:59:35 +00:00
description : "The slot at which syncing started (will only be reset after the sync reached its head)"
current_slot :
2019-05-10 04:03:59 +00:00
type : integer
format : uint64
2019-05-24 21:59:35 +00:00
description : "The most recent slot sync'd by the beacon node."
highest_slot :
2019-05-10 04:03:59 +00:00
type : integer
format : uint64
2019-05-24 21:59:35 +00:00
description : "Globally, the estimated most recent slot number, or current target slot number."
2019-05-13 05:07:15 +00:00
2019-05-10 04:03:59 +00:00
BeaconBlock :
2019-05-28 00:48:41 +00:00
description : "The [`BeaconBlock`](https://github.com/ethereum/eth2.0-specs/blob/master/specs/core/0_beacon-chain.md#beaconblock) object from the Eth2.0 spec."
2019-05-13 05:07:15 +00:00
allOf :
- $ref : '#/components/schemas/BeaconBlockCommon'
- type : object
properties :
body :
$ref : '#/components/schemas/BeaconBlockBody'
BeaconBlockHeader :
2019-05-28 00:48:41 +00:00
description : "The [`BeaconBlockHeader`](https://github.com/ethereum/eth2.0-specs/blob/master/specs/core/0_beacon-chain.md#beaconblockheader) object from the Eth2.0 spec."
2019-05-13 05:07:15 +00:00
allOf :
- $ref : '#/components/schemas/BeaconBlockCommon'
- type : object
properties :
body_root :
type : string
format : bytes
pattern : "^0x[a-fA-F0-9]{64}$"
description : "The tree hash merkle root of the `BeaconBlockBody` for the `BeaconBlock`"
2019-05-13 05:52:34 +00:00
BeaconBlockCommon :
# An abstract object to collect the common fields between the BeaconBlockHeader and the BeaconBlock objects
type : object
properties :
slot :
type : integer
format : uint64
description : "The slot to which this block corresponds."
parent_root :
type : string
format : bytes
pattern : "^0x[a-fA-F0-9]{64}$"
description : "The signing merkle root of the parent `BeaconBlock`."
state_root :
type : string
format : bytes
pattern : "^0x[a-fA-F0-9]{64}$"
description : "The tree hash merkle root of the `BeaconState` for the `BeaconBlock`."
signature :
type : string
format : bytes
pattern : "^0x[a-fA-F0-9]{192}$"
example : "0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505"
description : "The BLS signature of the `BeaconBlock` made by the validator of the block."
2019-05-13 05:07:15 +00:00
BeaconBlockBody :
type : object
2019-05-28 00:48:41 +00:00
description : "The [`BeaconBlockBody`](https://github.com/ethereum/eth2.0-specs/blob/master/specs/core/0_beacon-chain.md#beaconblockbody) object from the Eth2.0 spec."
2019-05-13 05:07:15 +00:00
properties :
randao_reveal :
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{192}$"
description : "The RanDAO reveal value provided by the validator."
eth1_data :
title : Eth1Data
type : object
2019-05-28 00:48:41 +00:00
description : "The [`Eth1Data`](https://github.com/ethereum/eth2.0-specs/blob/master/specs/core/0_beacon-chain.md#eth1data) object from the Eth2.0 spec."
2019-05-13 05:07:15 +00:00
properties :
deposit_root :
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{64}$"
description : "Root of the deposit tree."
deposit_count :
type : integer
format : uint64
description : "Total number of deposits."
block_hash :
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{64}$"
2019-05-13 05:52:34 +00:00
description : "Ethereum 1.x block hash."
2019-05-13 05:07:15 +00:00
graffiti :
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{64}$"
proposer_slashings :
type : array
items :
title : ProposerSlashings
type : object
2019-05-28 00:48:41 +00:00
description : "The [`ProposerSlashing`](https://github.com/ethereum/eth2.0-specs/blob/master/specs/core/0_beacon-chain.md#proposerslashing) object from the Eth2.0 spec."
2019-05-13 05:07:15 +00:00
properties :
proposer_index :
type : integer
format : uint64
description : "The index of the proposer to be slashed."
header_1 :
$ref : '#/components/schemas/BeaconBlockHeader'
header_2 :
$ref : '#/components/schemas/BeaconBlockHeader'
attester_slashings :
type : array
items :
title : AttesterSlashings
type : object
2019-05-28 00:48:41 +00:00
description : "The [`AttesterSlashing`](https://github.com/ethereum/eth2.0-specs/blob/master/specs/core/0_beacon-chain.md#attesterslashing) object from the Eth2.0 spec."
2019-05-13 05:07:15 +00:00
properties :
attestation_1 :
$ref : '#/components/schemas/IndexedAttestation'
attestation_2 :
$ref : '#/components/schemas/IndexedAttestation'
attestations :
type : array
items :
title : Attestation
type : object
2019-05-28 00:48:41 +00:00
description : "The [`Attestation`](https://github.com/ethereum/eth2.0-specs/blob/master/specs/core/0_beacon-chain.md#attestation) object from the Eth2.0 spec."
2019-05-13 05:07:15 +00:00
properties :
2019-06-28 11:23:22 +00:00
aggregation_bits :
2019-05-13 05:07:15 +00:00
type : string
format : byte
pattern : "^0x[a-fA-F0-9]+$"
2019-06-28 11:23:22 +00:00
description : "Attester aggregation bits."
custody_bits :
2019-05-13 05:07:15 +00:00
type : string
format : byte
pattern : "^0x[a-fA-F0-9]+$"
2019-06-28 11:23:22 +00:00
description : "Custody bits."
2019-05-13 05:07:15 +00:00
signature :
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{192}$"
description : "BLS aggregate signature."
data :
$ref : '#/components/schemas/AttestationData'
deposits :
type : array
items :
title : Deposit
type : object
2019-05-28 00:48:41 +00:00
description : "The [`Deposit`](https://github.com/ethereum/eth2.0-specs/blob/master/specs/core/0_beacon-chain.md#deposit) object from the Eth2.0 spec."
2019-05-13 05:07:15 +00:00
properties :
proof :
type : array
description : "Branch in the deposit tree."
items :
2019-05-20 06:43:21 +00:00
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{64}$"
minItems : 32
maxItems : 32
2019-05-13 05:07:15 +00:00
index :
type : integer
format : uint64
description : "Index in the deposit tree."
data :
title : DepositData
type : object
2019-05-28 00:48:41 +00:00
description : "The [`DepositData`](https://github.com/ethereum/eth2.0-specs/blob/master/specs/core/0_beacon-chain.md#depositdata) object from the Eth2.0 spec."
2019-05-13 05:07:15 +00:00
properties :
pubkey :
$ref : '#/components/schemas/pubkey'
withdrawal_credentials :
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{64}$"
description : "The withdrawal credentials."
amount :
type : integer
format : uint64
description : "Amount in Gwei."
signature :
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{192}$"
description : "Container self-signature."
voluntary_exits :
type : array
items :
title : VoluntaryExit
type : object
2019-05-28 00:48:41 +00:00
description : "The [`VoluntaryExit`](https://github.com/ethereum/eth2.0-specs/blob/master/specs/core/0_beacon-chain.md#voluntaryexit) object from the Eth2.0 spec."
2019-05-13 05:07:15 +00:00
properties :
epoch :
type : integer
format : uint64
description : "Minimum epoch for processing exit."
validator_index :
type : integer
format : uint64
description : "Index of the exiting validator."
signature :
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{192}$"
description : "Validator signature."
transfers :
type : array
items :
title : Transfer
type : object
2019-05-28 00:48:41 +00:00
description : "The [`Transfer`](https://github.com/ethereum/eth2.0-specs/blob/master/specs/core/0_beacon-chain.md#transfer) object from the Eth2.0 spec."
2019-05-13 05:07:15 +00:00
properties :
sender :
type : integer
format : uint64
description : "Sender index."
recipient :
type : integer
format : uint64
description : "Recipient index."
amount :
type : integer
format : uint64
2019-05-13 05:52:34 +00:00
description : "Amount in Gwei."
2019-05-13 05:07:15 +00:00
fee :
type : integer
format : uint64
2019-05-13 05:52:34 +00:00
description : "Fee in Gwei for block producer."
2019-05-13 05:07:15 +00:00
slot :
type : integer
format : uint64
2019-05-13 05:52:34 +00:00
description : "Inclusion slot."
2019-05-13 05:07:15 +00:00
pubkey :
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{96}$"
2019-05-13 05:52:34 +00:00
description : "Sender withdrawal public key."
2019-05-13 05:07:15 +00:00
signature :
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{192}$"
2019-05-13 05:52:34 +00:00
description : "Sender signature."
2019-05-13 05:07:15 +00:00
2019-05-10 04:03:59 +00:00
Fork :
type : object
2019-05-28 00:48:41 +00:00
description : "The [`Fork`](https://github.com/ethereum/eth2.0-specs/blob/master/specs/core/0_beacon-chain.md#Fork) object from the Eth2.0 spec."
2019-05-10 04:03:59 +00:00
properties :
previous_version :
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{8}$"
2019-05-13 05:52:34 +00:00
description : "Previous fork version."
2019-05-10 04:03:59 +00:00
current_version :
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{8}$"
2019-05-13 05:52:34 +00:00
description : "Current fork version."
2019-05-10 04:03:59 +00:00
epoch :
type : integer
format : uint64
2019-05-13 05:52:34 +00:00
description : "Fork epoch number."
2019-05-10 04:03:59 +00:00
IndexedAttestation :
type : object
2019-05-28 00:48:41 +00:00
description : "The [`IndexedAttestation`](https://github.com/ethereum/eth2.0-specs/blob/master/specs/core/0_beacon-chain.md#indexedattestation) object from the Eth2.0 spec."
2019-05-10 04:03:59 +00:00
properties :
2019-05-20 03:49:06 +00:00
custody_bit_0_indices :
2019-05-10 04:03:59 +00:00
type : array
2019-05-20 03:49:06 +00:00
description : "Validator indices for 0 bits."
2019-05-10 04:03:59 +00:00
items :
type : integer
format : uint64
2019-05-20 03:49:06 +00:00
custody_bit_1_indices :
2019-05-10 04:03:59 +00:00
type : array
2019-05-20 03:49:06 +00:00
description : "Validator indices for 1 bits."
2019-05-10 04:03:59 +00:00
items :
type : integer
format : uint64
2019-05-24 21:59:35 +00:00
signature :
type : string
format : bytes
pattern : "^0x[a-fA-F0-9]{192}$"
example : "0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505"
description : "The BLS signature of the `IndexedAttestation`, created by the validator of the attestation."
2019-05-10 04:03:59 +00:00
data :
$ref : '#/components/schemas/AttestationData'
2019-05-13 05:07:15 +00:00
AttestationData :
2019-05-10 04:03:59 +00:00
type : object
2019-05-28 00:48:41 +00:00
description : "The [`AttestationData`](https://github.com/ethereum/eth2.0-specs/blob/master/specs/core/0_beacon-chain.md#attestationdata) object from the Eth2.0 spec."
2019-05-10 04:03:59 +00:00
properties :
beacon_block_root :
2019-05-13 05:52:34 +00:00
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{64}$"
description : "LMD GHOST vote."
2019-05-10 04:03:59 +00:00
source_epoch :
type : integer
format : uint64
2019-05-13 05:52:34 +00:00
description : "Source epoch from FFG vote."
2019-05-10 04:03:59 +00:00
source_root :
2019-05-13 05:52:34 +00:00
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{64}$"
description : "Source root from FFG vote."
2019-05-10 04:03:59 +00:00
target_epoch :
type : integer
format : uint64
2019-05-13 05:52:34 +00:00
description : "Target epoch from FFG vote."
2019-05-10 04:03:59 +00:00
target_root :
2019-05-13 05:52:34 +00:00
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{64}$"
description : "Target root from FFG vote."
2019-05-10 04:03:59 +00:00
crosslink :
2019-05-13 05:52:34 +00:00
title : CrossLink
type : object
2019-05-28 00:48:41 +00:00
description : "The [`Crosslink`](https://github.com/ethereum/eth2.0-specs/blob/master/specs/core/0_beacon-chain.md#crosslink) object from the Eth2.0 spec, contains data from epochs [`start_epoch`, `end_epoch`)."
2019-05-13 05:52:34 +00:00
properties :
shard :
type : integer
format : uint64
description : "The shard number."
2019-05-24 21:59:35 +00:00
start_epoch :
type : integer
format : uint64
description : "The first epoch which the crosslinking data references."
end_epoch :
2019-05-13 05:52:34 +00:00
type : integer
format : uint64
2019-05-24 21:59:35 +00:00
description : "The 'end' epoch referred to by the crosslinking data; no data in this Crosslink should refer to the `end_epoch` since it is not included in the crosslinking data interval."
2019-05-13 05:52:34 +00:00
parent_root :
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{64}$"
description : "Root of the previous crosslink."
data_root :
type : string
format : byte
pattern : "^0x[a-fA-F0-9]{64}$"
description : "Root of the crosslinked shard data since the previous crosslink."
2019-05-13 05:07:15 +00:00
2019-05-10 04:03:59 +00:00
responses :
Success :
2019-05-13 05:52:34 +00:00
description : "Request successful."
2019-05-10 04:03:59 +00:00
InvalidRequest :
2019-05-13 05:52:34 +00:00
description : "Invalid request syntax."
2019-05-10 04:03:59 +00:00
InternalError :
2019-05-13 05:52:34 +00:00
description : "Beacon node internal error."
2019-05-10 04:03:59 +00:00
CurrentlySyncing :
2019-05-13 05:52:34 +00:00
description : "Beacon node is currently syncing, try again later."
2019-05-20 03:49:06 +00:00
NotFound :
description : "The requested API endpoint does not exist."