queryLedgerState/epoch

Query the current epoch number

Returns the current epoch number of the Cardano blockchain.

Request

{
  "jsonrpc": "2.0",
  "method": "queryLedgerState/epoch"
}
This method takes no parameters.

Response

{
  "jsonrpc": "2.0",
  "method": "queryLedgerState/epoch",
  "result": 523
}

Response Fields

result
number
Current epoch number (0-indexed)

Code Examples

curl -X POST https://api.nacho.builders/v1/ogmios \
-H "Content-Type: application/json" \
-H "apikey: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "queryLedgerState/epoch"}'

Try It Live

Loading...

Notes

  • Epochs on Cardano mainnet last 5 days (432,000 slots)
  • Epoch boundaries trigger stake distribution snapshots
  • The epoch number is used for stake pool rewards calculation

Ogmios Ledger State Query Reference

Was this page helpful?