MCPcopy Create free account
hub / github.com/UMAprotocol/protocol / getBlockForTimestamp

Method getBlockForTimestamp

packages/sdk/src/blockFinder.ts:21–57  ·  view source on GitHub ↗

* @notice Gets the latest block whose timestamp is <= the provided timestamp. * @param {number} timestamp timestamp to search.

(timestamp: number | string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

getLpFeePctMethod · 0.80
utils.jsFile · 0.80
getHistoricalPriceMethod · 0.80
getHistoricalPriceMethod · 0.80
getHistoricalPriceFunction · 0.80

Calls 4

getLatestBlockMethod · 0.95
getBlockMethod · 0.95
findBlockMethod · 0.95
estimateBlocksElapsedFunction · 0.90

Tested by

no test coverage detected