NimiqNimiq
  • Web Client
  • Hub
  • RPC
  • Mini Apps
  • Nimiq Utils
  • AI
  • Nodes & Validators
  • Network Upgrades
  • Protocol
  • Migration
  • Overview
  • Blockchain Explorers
    • ARPL CLI Tool
    • JavaScript Native
    • Raw Requests
    • TypeScript Client
    • All
      • getBatchAt
      • getBatchIndexAt
      • getBlockAfterCollateralLockup
      • getBlockAfterJail
      • getBlockAfterReportingWindow
      • getElectionBlockAfter
      • getElectionBlockBefore
      • getElectionBlockOf
      • getEpochAt
      • getEpochIndexAt
      • getFirstBatchOfEpoch
      • getFirstBlockOf
      • getFirstBlockOfBatch
      • getLastElectionBlock
      • getLastMacroBlock
      • getMacroBlockAfter
      • getMacroBlockBefore
      • getMacroBlockOf
      • getPolicyConstants
      • getSupplyAt
      • isElectionBlockAt
      • isMacroBlockAt
      • isMicroBlockAt
    • ZKP Component
  • Open RPC Servers
  • RPC Node Setup
policy

Get epoch at

Returns the epoch number at a given block number (height).

getEpochAtrpc method

Parameters

blockNumbernumberrequired

Response fields

u32number

Interactive playground

Try the method against a public RPC endpoint.

Copyright © 2026