getHeadersFor

fun getHeadersFor(cs: ChainSelector, height: Int, count: Int, timeoutInMs: Int = requestTimeout): List<iBlockHeader>

Return serialized headers for the blocks beginning at the supplied height

Return

A list of serialized block headers. The list will contain fewer than count headers if count exceeds the maximum number of headers this server supports or if the chain has no more headers

Parameters

height

The height of the first block header to return

count

The number of block headers to return

timeoutInMs

(optional) Override the default request timeout