MCPcopy Create free account
hub / github.com/ethstorage/es-node / HeaderByNumber

Method HeaderByNumber

ethstorage/eth/randao_client.go:55–58  ·  view source on GitHub ↗
(ctx context.Context, blockNumber *big.Int)

Source from the content-addressed store, hash-verified

53}
54
55func (w *RandaoClient) HeaderByNumber(ctx context.Context, blockNumber *big.Int) (*types.Header, error) {
56 w.lg.Debug("Fetching header by number by Randao client", "number", blockNumber)
57 return w.rc.HeaderByNumber(ctx, blockNumber)
58}
59
60// Close closes the RandaoClient and the underlying RPC client it talks to.
61func (w *RandaoClient) Close() {

Callers

nothing calls this directly

Calls 1

HeaderByNumberMethod · 0.65

Tested by

no test coverage detected