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

Method HeaderByNumber

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

Source from the content-addressed store, hash-verified

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)
46 TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
47

Callers 2

BlockNumberMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected