ETH2 Proposer Slashings API
The proposerSlashings API returns a list of proposer slashings for a given Ethereum 2.0 network. A proposer slashing occurs when a validator is found to have double signed a block. The proposerSlashings API can be used to get information about proposer slashings, such as the date of the slashing, the block height, and the validator's index.
query ($network: Ethereum2Network!) {
ethereum2(network: $network) {
proposerSlashings(
options: {asc: "date.date", limit: 10}
slashingEpoch: {is: 217770}
) {
date: date {
date
}
slashing_proposers: countBigInt(uniq: slashing_proposers)
block {
height
timestamp {
time
}
}
blockRoot
eth1 {
blockHash
depositCount
depositRootHash
}
headerOrder
parentRoot
proposer {
index
pubkey
}
slashing {
bodyRoot
epoch
parentRoot
proposer {
index
pubkey
}
signature
slot
}
}
}
}
<!-- Parameters -->
{
"network": "eth2"
}
Filtering proposerSlashings
Fields
date
: The date of the proposer slashing.
slashing_proposers
: The number of unique proposers in the result set.
block
: The block that the proposer slashing occurred in.
height
: The block height.
timestamp
: The block timestamp.
blockRoot
: The block root hash.
eth1
: The ETH1 block that the block was proposed for.
blockHash
: The ETH1 block hash.
depositCount
: The number of deposits in the ETH1 block.
depositRootHash
: The deposit root hash of the ETH1 block.
headerOrder
: The header order of the block.
parentRoot
: The parent root hash of the block.
proposer
: The proposer of the block.
index
: The index of the proposer in the validator set.
pubkey
: The public key of the proposer.
slashing
: The slashing information.
bodyRoot
: The body root hash of the block.
epoch
: The epoch of the slashing.
parentRoot
: The parent root hash of the block.
proposer
: The proposer of the block.
signature
: The signature of the slashing.
slot
: The slot of the slashing.