Nimiq
policy

Get election block before

Returns the number block (height) of the preceding election macro block before a given block number (height). If the given block number is an election macro block, it returns the election macro block before it.

getElectionBlockBeforerpc method

Parameters

blockNumbernumberrequired

Response fields

u32number

Interactive playground

Try the method against a public RPC endpoint.

Copyright © 2026