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

Function NewETHAPI

ethstorage/node/eth_api.go:32–38  ·  view source on GitHub ↗
(config *RPCConfig, chainId *big.Int, lg log.Logger)

Source from the content-addressed store, hash-verified

30)
31
32func NewETHAPI(config *RPCConfig, chainId *big.Int, lg log.Logger) *ethAPI {
33 return &ethAPI{
34 rpcCfg: config,
35 chainId: chainId,
36 lg: lg,
37 }
38}
39
40func (api *ethAPI) ChainId() hexutil.Uint64 {
41 return hexutil.Uint64(api.chainId.Uint64())

Callers 1

newRPCServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected