curl --request GET \
--url 'https://beaconcha.in/api/v1/latestState?apikey='{
"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": {}
}
}
}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.
curl --request GET \
--url 'https://beaconcha.in/api/v1/latestState?apikey='{
"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": {}
}
}
}Latest state was retrieved successfully. The data object contains the current chain status and pricing context.
Standard success envelope used by all API endpoints.
HTTP-independent status of the API operation. For successful responses this is always "OK".
OK Snapshot of the latest beacon chain state along with pricing metadata used by the UI.
Show child attributes
Highest slot number for which a block proposal has been observed and indexed.
x >= 012771116
Latest processed slot number based on chain time as observed by the backend.
x >= 012771115
Epoch number corresponding to the current slot.
x >= 0399097
Most recent epoch that has been finalized by the consensus protocol.
x >= 0399094
Number of epochs between the current epoch and the latest finalized epoch (currentEpoch - currentFinalizedEpoch). Always non-negative.
x >= 03
Indicates whether the backend is still catching up to the network head. When true, some values may lag behind real time.
false
Currency settings and price data used for value conversions in the UI.
Show child attributes
Fiat currency code used for the price ticker (ISO 4217 code, e.g., USD, EUR).
"USD"
Symbol of the ticker fiat currency.
"$"
Primary asset selected for display in the UI (usually ETH).
"ETH"
Symbol used for the selected currency.
"ETH"
Primary asset used for conversions and price displays (same as selectedCurrency in most deployments).
"ETH"
Symbol used for the primary asset.
"ETH"
Conversion rate of the primary asset to itself. This is 1 when mainCurrency equals the base asset (ETH).
1
Formatted string representation of mainCurrencyPrice for UI display (may include separators or HTML markup).
"1"
Abbreviated (thousands) representation of mainCurrencyPrice for compact displays.
"1"
Spot price of the primary asset in the ticker fiat currency.
4366.60356702
Formatted string representation of mainCurrencyTickerPrice for UI display (may include thousands separators or HTML markup).
"4<span class=\"thousands-separator\"></span>366"
Abbreviated (thousands) representation of mainCurrencyTickerPrice for compact displays.
"4<span class=\"thousands-separator\"></span>366"
Asset used when displaying values originating from the execution layer (typically ETH).
"ETH"
Symbol used for the execution-layer asset.
"ETH"
Conversion rate of the execution-layer asset to itself. This is 1 when elCurrency equals ETH.
1
Formatted string representation of elCurrencyPrice.
"1"
Abbreviated (thousands) representation of elCurrencyPrice.
"1"
Asset used when displaying values originating from the consensus layer (typically ETH).
"ETH"
Symbol used for the consensus-layer asset.
"ETH"
Conversion rate of the consensus-layer asset to itself. This is 1 when clCurrency equals ETH.
1
Formatted string representation of clCurrencyPrice.
"1"
Abbreviated (thousands) representation of clCurrencyPrice.
"1"
Map of fiat currency codes to compact price representations for the primary asset.
Show child attributes
Compact price representation used in UI tickers for a specific fiat currency.
Show child attributes
Fiat currency symbol corresponding to the price (e.g., $, €).
"$"
Price rounded to the nearest integer amount in the fiat currency.
4366
Abbreviated string representation (e.g., 4.3k) for compact displays.
"4.3k"
Was this page helpful?