Latest consensus and execution state
curl --request GET \
--url 'https://beaconcha.in/api/v1/latestState?apikey='import requests
url = "https://beaconcha.in/api/v1/latestState?apikey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://beaconcha.in/api/v1/latestState?apikey=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://beaconcha.in/api/v1/latestState?apikey=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://beaconcha.in/api/v1/latestState?apikey="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://beaconcha.in/api/v1/latestState?apikey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://beaconcha.in/api/v1/latestState?apikey=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "OK",
"data": {
"lastProposedSlot": 12771116,
"currentSlot": 12771115,
"currentEpoch": 399097,
"currentFinalizedEpoch": 399094,
"finalityDelay": 3,
"syncing": false,
"rates": {
"tickerCurrency": "USD",
"tickerCurrencySymbol": "$",
"selectedCurrency": "ETH",
"selectedCurrencySymbol": "ETH",
"mainCurrency": "ETH",
"mainCurrencySymbol": "ETH",
"mainCurrencyPrice": 1,
"mainCurrencyPriceFormatted": "1",
"mainCurrencyKFormatted": "1",
"mainCurrencyTickerPrice": 4366.60356702,
"mainCurrencyTickerPriceFormatted": "4<span class=\"thousands-separator\"></span>366",
"mainCurrencyTickerPriceKFormatted": "4<span class=\"thousands-separator\"></span>366",
"elCurrency": "ETH",
"elCurrencySymbol": "ETH",
"elCurrencyPrice": 1,
"elCurrencyPriceFormatted": "1",
"elCurrencyKFormatted": "1",
"clCurrency": "ETH",
"clCurrencySymbol": "ETH",
"clCurrencyPrice": 1,
"clCurrencyPriceFormatted": "1",
"clCurrencyKFormatted": "1",
"mainCurrencyTickerPrices": {}
}
}
}{
"status": "ERROR: invalid request",
"data": null
}{
"status": "ERROR: internal server error",
"data": null
}Network
Latest consensus and execution state
Retrieve the latest known network state as observed by the explorer backend. The payload includes current slot and epoch numbers, the most recent finalized epoch, a finality delay indicator, a syncing flag, and display rates used for price conversions in the UI.
GET
/
api
/
v1
/
latestState
Latest consensus and execution state
curl --request GET \
--url 'https://beaconcha.in/api/v1/latestState?apikey='import requests
url = "https://beaconcha.in/api/v1/latestState?apikey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://beaconcha.in/api/v1/latestState?apikey=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://beaconcha.in/api/v1/latestState?apikey=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://beaconcha.in/api/v1/latestState?apikey="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://beaconcha.in/api/v1/latestState?apikey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://beaconcha.in/api/v1/latestState?apikey=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "OK",
"data": {
"lastProposedSlot": 12771116,
"currentSlot": 12771115,
"currentEpoch": 399097,
"currentFinalizedEpoch": 399094,
"finalityDelay": 3,
"syncing": false,
"rates": {
"tickerCurrency": "USD",
"tickerCurrencySymbol": "$",
"selectedCurrency": "ETH",
"selectedCurrencySymbol": "ETH",
"mainCurrency": "ETH",
"mainCurrencySymbol": "ETH",
"mainCurrencyPrice": 1,
"mainCurrencyPriceFormatted": "1",
"mainCurrencyKFormatted": "1",
"mainCurrencyTickerPrice": 4366.60356702,
"mainCurrencyTickerPriceFormatted": "4<span class=\"thousands-separator\"></span>366",
"mainCurrencyTickerPriceKFormatted": "4<span class=\"thousands-separator\"></span>366",
"elCurrency": "ETH",
"elCurrencySymbol": "ETH",
"elCurrencyPrice": 1,
"elCurrencyPriceFormatted": "1",
"elCurrencyKFormatted": "1",
"clCurrency": "ETH",
"clCurrencySymbol": "ETH",
"clCurrencyPrice": 1,
"clCurrencyPriceFormatted": "1",
"clCurrencyKFormatted": "1",
"mainCurrencyTickerPrices": {}
}
}
}{
"status": "ERROR: invalid request",
"data": null
}{
"status": "ERROR: internal server error",
"data": null
}Authorizations
ApiKeyAuthQueryApiKeyAuthHeader
Response
Latest state was retrieved successfully. The data object contains the current chain status and pricing context.
Standard success envelope used by all API endpoints.
Was this page helpful?
⌘I

