Skip to main content

rating

This page describes the structure of the rating index (Elasticsearch), and also depicts a few examples of how to query it.

_id

The _id field of this index is composed in this way: {validator_bls_key}_{epoch} (example: blskey_37).

Fields

FieldDescription
ratingThe rating of the validator, which can be in the [0, 100] range.

Query examples

Fetch rating of a validator for a specific epoch

curl --request GET \
--url ${ES_URL}/rating/_search \
--header 'Content-Type: application/json' \
--data '{
"query": {
"match": {
"_id":"${BLS_KEY}_600"
}
}
}'