MCPcopy Create free account
hub / github.com/LUX-Core/lux / eth_getUncleCountByBlockNumber

Method eth_getUncleCountByBlockNumber

src/cpp-ethereum/libweb3jsonrpc/Eth.cpp:222–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222Json::Value Eth::eth_getUncleCountByBlockNumber(string const& _blockNumber)
223{
224 try
225 {
226 BlockNumber blockNumber = jsToBlockNumber(_blockNumber);
227 if (!client()->isKnown(blockNumber))
228 return Json::Value(Json::nullValue);
229
230 return toJS(client()->uncleCount(blockNumber));
231 }
232 catch (...)
233 {
234 BOOST_THROW_EXCEPTION(JsonRpcException(Errors::ERROR_RPC_INVALID_PARAMS));
235 }
236}
237
238string Eth::eth_getCode(string const& _address, string const& _blockNumber)
239{

Callers 1

Calls 5

jsToBlockNumberFunction · 0.85
toJSFunction · 0.85
ValueClass · 0.50
isKnownMethod · 0.45
uncleCountMethod · 0.45

Tested by

no test coverage detected