MCPcopy Create free account
hub / github.com/CPChain/chain / BlockByNumber

Method BlockByNumber

interfaces.go:42–42  ·  view source on GitHub ↗
(ctx context.Context, number *big.Int)

Source from the content-addressed store, hash-verified

40type ChainReader interface {
41 BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
42 BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
43 HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
44 HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
45 TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)

Callers 3

mainFunction · 0.65
TestClient_BlockByNumberFunction · 0.65
getBlockPricesMethod · 0.65

Calls

no outgoing calls

Tested by 1

TestClient_BlockByNumberFunction · 0.52