MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / getChainID

Method getChainID

cmd/cql-eth-exchange/exchange.go:178–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176}
177
178func (e *Exchange) getChainID() (chainID int64, err error) {
179 var result hexutil.Big
180 err = e.rawClient.Call(&result, "eth_chainId")
181 if err != nil {
182 return
183 }
184 chainID = result.ToInt().Int64()
185 return
186}
187
188func (e *Exchange) connectServer(ctx context.Context) (err error) {
189 e.stopPreviousSubscribe()

Callers 1

connectServerMethod · 0.95

Calls 1

CallMethod · 0.65

Tested by

no test coverage detected