0

My goal is to implement a function which gets epoch information of finished epochs from a node. The input should be the epoch nr and the output should contain:

  • First block
  • First block timestamp
  • Last block
  • Last block timestamp

Similar to what i get when looking at the Epoch info on Solana-Explorer: https://explorer.solana.com/epoch/417

I only found GetEpochInfo() so far, but here i only get information about the current epoch. Is there a way to get this information by calling Rpc Methods on a node?

1 Answer 1

1

Just from RPC methods, you can:

The explorer is open-source, so feel free to see how it's being done there! Here's the epoch details page https://github.com/solana-labs/explorer/blob/master/src/pages/EpochDetailsPage.tsx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.